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 #246
my_list = [1, 2, 3]
my_second_list = 5 * my_list
print(my_list)
Against sequences, * always create new objects. (python-simple.com/python-langage/sequence.php)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) December 17, 2020
my_list = [1, 2, 3]
my_second_list = 5 * my_list
print(my_list)
[1, 2, 3]
[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅