What is the result of this code? >>> x = "a" >>> x *= 3 print(x) | SoloLearn: Learn to code for FREE!

0

What is the result of this code? >>> x = "a" >>> x *= 3 print(x)

3/25/2020 4:50:11 AM

Ugochukwu Celestine

1 Answer

New Answer

+1

Here a will print 3 times x = "a" x *= 3 x = "a" * 3 = aaa when we multiply any string with number n that string will print n times.