Question #246

What is the output of the code snippet below?
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)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵