0
In-Place Operators
What is the result of this code? >>> x = "a" >>> x *= 3 print(x)
5 Antworten
+ 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