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 ▸

Demonstrate a recursive solution to calculate the factorial of a number


Write a basic program to output the lowest of 3 input numbers. (You may omit error checks on your inputs)


Explain the difference between local and global variables


Create an algorithm that can be used as a guessing game. Make sure to import random at the start.