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 ▸

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


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


How do For Loops work?


Write a function s(n) that will return a list of the first n squares.