$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · hard · #45
What is printed?
print([1, 2, 3] * 2)
[2, 4, 6]
[1, 2, 3, 2]
[[1,2,3],[1,2,3]]
[1, 2, 3, 1, 2, 3]
List multiplication repeats the elements, not doubles them.
Play Problem Solving ▸
◂ #44
all Problem Solving — predict the output questions
#46 ▸