0
>>>x="a"
>>>x*=3
5 Answers
+ 1
x= x*3 == 'aaa'
+ 1
x*=3 means x=x*3 so replace x="a", so x = 'aaa' .
It really doesn't matter what will be the data type of x.
If x="abcd"; x*=3;print(x)
Outputs: "abcdabcdabcd"
0
pr q hoga
0
plz samjha do
0
x*=3 means x=x*3 so replace x="a", so x = 'aaa' .
It really doesn't matter what will be the data type of x.
If x="abcd"; x*=3;print(x)
Outputs: "abcdabcdabcd"



