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 using range() and a list of values?


Use recursion to print all the sublists of a given list


Write a program that can convert between celcius and farenheit temperature scales


Why would I use dictionaries instead of a list?