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

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

Answered by George H. Python tutor

1516 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Why would I use dictionaries instead of a list?


Creating string from multiple strings(or characters)


What can I do with Python?


What would output this code? print(hello world)


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences