Python Program using set
In this program, you will learn how to create a simple program using set in Python.
Country = {"China", "Aus", "Uk", "Eng"}
Example: How to create a simple program using set in Python
Country = {"China", "Aus", "Uk", "Eng"}
print(Country)
print("Printing set using for loop")
for i in Country:
print(i)
Output:
{'Uk', 'Eng', 'Aus', 'China'}
Printing set using for loop
Uk
Eng
Aus
China