6 Set data type
'''
1. Set is used to store unique values & it doesn't contains duplicate values.
2. Using set we can do set operations
3. Using curly brackets "{}" we can create a set
4. Set doesn't support indexing
5. Set is a mutable object
'''
# To create a set
eids = {45,33,45,23,33}
# To print a set
print(' Emp ids are ==> ',eids )
print(id(eids))
# To Delete a set
#del eids
Comments
Post a Comment