Web Analytics

Python set.pop() Method

Set Method โ€ข Pop

The pop() method removes a random item from the set.

This method returns the removed item.

Syntax

set.pop()

Parameters

No parameters.

Return Value

The removed item.

Example

Using the pop() method:

Output
Click Run to execute your code

Related Functions