0

Why result of this is strange? >>>4*'2**2'

result is '2**42**42**42**4' it should be '4444'

25th Jun 2017, 2:51 AM
Abhishek Saini
Abhishek Saini - avatar
2 odpowiedzi
+ 6
Result is 2**22**22**22**2 And It's not strange Let's say it as same as '2**2'*4 so '2**2'+'2**2'+'2**2'+'2**2' equal as '2**2'*4 ('2**2' is string) If you want output like that.Code should be like '4*str(2**2)'
25th Jun 2017, 3:01 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
0
Hey buddi output should be 2**22**22**22**2 but console says >>> 4*'2**2' result is '2**42**42**42**4' How can anyone explain me?
26th Jun 2017, 6:51 PM
S.Naveen Kumar
S.Naveen Kumar - avatar