Python set.pop() Method
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
Enjoying these tutorials?