The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #722
my_set = {1, 'Python', ('John', 'Jeanne'), True}
print(my_set)
As a set is a collection of hashables, and as 1 == True evaluates to True , the set will remove True only to keep 1 instead. (python.org/dev/peps/pep-0285)
Question difficulty: 🔵🔵🔵🔵🔵
Similar questions: