Mystery set

Report a typo

There is an unknown set of objects named mystery_set which has been predefined. You don't have access to this set.

Write a program that deletes the input string (stored in the variable string) from the mystery_set. It is NOT guaranteed that the string is an element of the mystery_set. Don't forget to take that into account!

Don't print anything!

You can either check if string is an element in mystery_set or use a method that allows you to delete elements from the set without raising exceptions.
Write a program in Python 3
# mystery_set has been defined
string = input()

# delete string from mystery_set
___

Create a free account to access the full topic