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 ▸

Give an example of a FOR loop


Whats the output of "for i in "hello world": print(i)" and why/how is this achieved


What is the difference between a for and a while loop?


Give a segment of python code that will print the numbers 1 to 7, each one on a new line