Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to Loop Through Sets in python

mySet = {1, 2, 3}
for x in mySet:
    print(x)

"""
Output:
1
2
3
"""
Source by liu-111.medium.com #
 
PREVIOUS NEXT
Tagged: #How #Loop #Through #Sets #python
ADD COMMENT
Topic
Name
7+6 =