Python Exercise: Iteration over sets
Python sets: Exercise-2 with Solution
Write a Python program to iteration over sets.
#Create a set num_set = set([0, 1, 2, 3, 4, 5]) for n in num_set: print(n)
0 1 2 3 4 5
Python Code Editor:
Improve this sample solution and post your code through Disqus