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 #608
print({1 for i in range(5)})
{ and } indicate a set. Sets don't allow duplicates! (docs.python.org/3/library/stdtypes.html#set-types-set-fro...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) October 25, 2020
print({1 for i in range(5)})
[1, 2, 3, 4, 5]
{1, 2, 3, 4, 5}
{1}
[1]#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅