0
In-Place Operators
What is the result of this code? >>> x = "a" >>> x *= 3 print(x)
5 Answers
+ 8
since x is assigned a
x *= 3 means x = x*3
= aaa.
+ 6
Nileshâ° x*=3 means x = x*3
Or x = 'a'*3 or aaa
+ 6
SRâ (dm â) Oh sorry didn't see that đ
+ 2
put it in the playground and see
+ 1
Console will show you:
aaa