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

1768 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Use recursion to print all the sublists of a given list


What is the difference between a float and an integer variable type?


Generate an array of integers from 0 to 99 and split it into two smaller arrays. Each smaller array will contain half of the original.


How would you get a piece of code to print the numbers 1 to 10


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:

© 2025 by IXL Learning