What is the outcome of the following code? print(2*[3,4,5])

[3, 4, 5, 3, 4, 5] will be printed.

GH
Answered by George H. Python tutor

2123 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Create a python code to sum the number from 1 to 10.


Give a segment of python code that will print the numbers 1 to 7, each one on a new line


Explain how you would write a python program that takes a rectangle and a point in a 2D space as command-line arguments and checks if they intersect.


Describe both For-loops and While-loops and explain how you can simulate the effect of a for loop with a while loop with an example.


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning