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 program that takes a value x and then outputs x Fibonnaci numbers. E.g. if x=6 output would be 1 1 2 3 5 8


Demonstrate a recursive solution to calculate the factorial of a number


Create a program that generates prime numbers between two integer boundareis


Write a function that takes a list of numbers as input, and outputs the average of the numbers. The function should catch any errors.