QuestionQ30

VerifiedFunctions and Exceptions

What is the resulting output of this code?

Question Image

Explanation

In Python, multiplying a string by an integer repeats the string with no added spaces or commas. The default value of num is 1, while the second call supplies 3.

Community Discussion

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