0
Please explain this code. Why output isn't false?
If("m"): print("It's true") else: print("It's false") Output: It's true
5 Réponses
+ 1
Super, thank you for your help.
0
A non-empty string is "true"
0
Thank you very much :)
0
If it's true, is this valid for int type
0
Empty string, lists, tuples, dicts, sets, 0 (zero) and 0.0 (zero point zero) return false.