What happens if you multiply string by 0 | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What happens if you multiply string by 0

?

5th Feb 2019, 6:13 AM
M. Anne
M. Anne - avatar
2 Réponses
+ 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