A

Admin • 833.24K Points
Coach

Q. What will `print('abc' * 2)` output?

  • (A) abcabc
  • (B) abc*2
  • (C) 2abc
  • (D) abcabcabc
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The `*` operator repeats the string specified number of times.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.