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 #9
list(set([1,2,2,4]))
The common approach to get a unique collection of items is to use a set. Sets are unordered collections of distinct objects. (stackoverflow.com/questions/7961363/removing-duplicates-i...)
What is the output of the following code?
— The Python Quiz (@thepythonquiz) May 28, 2020
list(set([1,2,2,4]))
[1,2,2,4]
[1,2,4]
[1,2,2,2,4]#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅