QuestionQ213

VerifiedComputer Programming and Python Fundamentals

What is the output of the following snippet when the user enters 3 and 6 on two separate lines, respectively?

Question Image

Explanation

input() returns a string, so x is "3". Multiplying that string by the integer 6 repeats it six times, resulting in 333333.

Community Discussion

No comments yet. Be the first to start the discussion!