0

What happens if you multiply string by 0

?

5th Feb 2019, 6:13 AM
M. Anne
M. Anne - avatar
2 odpowiedzi
+ 1
It deletes the string
5th Feb 2019, 6:22 AM
Maneren
Maneren - avatar
+ 1
I meant if you do: str = "Hello World!" str *= 0 print(str) # null
5th Feb 2019, 8:30 AM
Maneren
Maneren - avatar