programming-examples/python/Sets/Python program to create a new empty set.py

6 lines
105 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
#Create a new empty set
x = set()
print(x)
#Create a non empty set
n = set([0, 1, 2, 3, 4])
print(n)