The set is used for checking the presence of an item. Set theory is an important part of mathematics.
The below example takes input from the user and performs multiple set operations like:
- adding elements to set
- deleting elements from a set
- checking for subset condition
Here is the complete code for your reference!