Python Set pop() Method

Python Set pop() Method

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

  • This method returns the removed item.

Syntax

  • set.pop()

Parameter Values

  • No Parameter

 

 

Comments