A

Admin • 832.27K Points
Coach

Q. What is the output of this code?

Code:
print('a' * 4)
  • (A) aaaa
  • (B) a4
  • (C) aaaaa
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Multiplying a string by a number repeats the string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.