QuestionQ276

VerifiedComputer Programming and Python Fundamentals

What is the expected output of the following code when the user enters 4 and 7?

Question Image

Explanation

input() produces a string, so x is "4". Multiplying that string by the integer 7 repeats it seven times, producing 4444444.

Community Discussion

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