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.


How do I use for loops in Python?


What are the main data structures that I can use in Python


Sort a given input of lowercase letters alphabetically