What is the outcome of the following code? print(2*[3,4,5])

[3, 4, 5, 3, 4, 5] will be printed.

GH

Related Python Mentoring answers

All answers ▸

When to use a dectionary or a list


What is the difference between a FOR loop and WHILE loop and how do I write them?


Create a program that checks for syntactical errors in an email address.


Explain why creating a list of several instances of one element using something like my_list = [a] * 5 can result in strange behaviour