0

python

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

9th Feb 2019, 5:51 PM
Gossip Society
Gossip Society - avatar
2 Answers
0
aaa
9th Feb 2019, 6:03 PM
Suyash Jadhav
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.
9th Feb 2019, 6:08 PM
Suyash Jadhav