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 ▸

Using the shared code editor, write a recursive function for calculating a factorial of an input parameter.


Create an rock, paper, scissors game. The user should input one option, and the computer should play randomly.


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


How would you get a piece of code to print the numbers 1 to 10