0

How to solve this code

x = "a" x*= 3 print(x)

30th Nov 2020, 6:17 AM
Aries Danial
3 Answers
+ 7
Mohamad Ariesdanial Mohamad Anuar x="a" // value of x is a x*=3 // x(a) multiply three times print(x)// then your output will comes aaa because x(a) multiply three times...
30th Nov 2020, 6:40 AM
ㅀㅀㅀ
+ 6
https://code.sololearn.com/cAVXmTYef8xw/?ref=app "a" is a string x*=3 means x*3 since x is string that means x will repeat itself 3 times so output is aaa
30th Nov 2020, 6:19 AM
Atul
Atul - avatar
+ 3
Tag a relevant programming language name rather than your name please ... ☝
30th Nov 2020, 7:19 AM
Ipang