A

Admin • 832.27K Points
Coach

Q. What will be the output of this code?

Code:
print('5' * 3)
  • (A) '15'
  • (B) '555'
  • (C) '53'
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Multiplying a string by an integer repeats the string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.