How to Loop Through Sets in python

43

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

"""
Output:
1
2
3
"""

Comments

Submit
0 Comments