There are few ways to create empty Set in Python :
- Using set() method
This is the built-in method in python that creates Empty set in that variable.
- Using clear() method (creative Engineer Technique LOL)
See this Example:
sets={"Hi","How","are","You","All"}
type(sets) (This Line
Output : set)
sets.clear()
print(sets) (This Line Output : {})
type(sets) (This Line
Output : set)
So, This are 2 ways to create empty Set.