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 function s(n) that will return a list of the first n squares.


Make a program that asks the user for a series of numbers until they either want to output the average or quit the program.


How would you write a while loop to print all even numbers from 1-10?


How do I define a function in Python?