0
python
What is the result of this code? >>> x = "a" >>> x *= 3 print(x)
2 Answers
0
aaa
0
x *= 3 is equals to x = x*3,
And x is a variable which contains character "a" .so your code will repeat character value of variable x for 3 times.
What is the result of this code? >>> x = "a" >>> x *= 3 print(x)