0
Why result of this is strange? >>>4*'2**2'
result is '2**42**42**42**4' it should be '4444'
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)'
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?