Source Code:
(back to article)
# Iterating over a set using a for loop my_set = {'apple', 'banana', 'cherry'} for fruit in my_set: print(fruit)
Result:
Report an issue