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 ▸

Write a recursive function to return the nth Fibonacci number in Python


How does a for loop work in Python?


How do I use format python code?


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