Why print(3 and 10) prints 10?

前端 未结 0 371
再見小時候
再見小時候 2020-12-01 14:20

Why in python print(3 and 10) prints 10 instead of true? Since, and is a binary operator and, zero values are false while non-zero values are true. But, why is the output 10

相关标签:
回答
  • 消灭零回复
提交回复
热议问题