12345678910111213141516171819202122232425 |
- print "-----"
- print [] and 5
- print {} and 5
- print False and 5
- print True and 5
- print "-----"
- print [] or 5
- print {} or 5
- print False or 5
- print True or 5
- print "-----"
- print 5 and []
- print 5 and {}
- print 5 and False
- print 5 and True
- print "-----"
- print 5 or []
- print 5 or {}
- print 5 or False
- print 5 or True
- print "-----"
- print [] or {}
- print {} or []
- print [] or False
- print [] or True
|