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

1677 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

How do I define a function in Python?


What is the difference between a for loop and a while loop.


Sort a given input of lowercase letters alphabetically


Give an example of a FOR loop


We're here to help

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

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences