cuisine = {"american", "italian", "chinese"}
for food in cuisine:
print(food)
# Creating a set using string
test_set = set("geEks")
# Iterating using for loop
for val in test_set:
print(val)
dishes = {"Parotta","Chappathi","Beef Curry"}
for dish in dishes:
print(dish)
#Parotta
#Chappathi
#Beef Curry
#To make your code look more "Pythonic" :)
dishes = {"Parotta","Chappathi","Beef Curry"}
for key,dish in enumerate(dishes):
print(dish)
#Parotta
#Chappathi
#Beef Curry