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

1704 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

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


What built-in types does python provide?


Create an algorithm that can be used as a guessing game. Make sure to import random at the start.


Write a program that computes the sum of all numbers up to a input number n


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