programming-examples/python/Sets/Python program to iteration over sets.py

4 lines
86 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
#Create a set
num_set = set([0, 1, 2, 3, 4, 5])
for n in num_set:
print(n)