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 basic program to output the lowest of 3 input numbers. (You may omit error checks on your inputs)


How might we implement the bubble sort algorithm in Python


What are recursive functions and when should they be used?


What can be used to iterate through a list in python?