0

When we multiply a string by 0 (zero) python why it gives No Output?

5th Oct 2019, 9:44 PM
Prashant Gill
Prashant Gill - avatar
2 Antworten
+ 1
It doesn't give No Output, it prints an empty string. To try that: print("this is a string"*0=="") OUTPUT: True
5th Oct 2019, 9:58 PM
Aymane Boukrouh
Aymane Boukrouh - avatar