t259.py 387 B

12345678910111213141516171819202122232425
  1. print "-----"
  2. print [] and 5
  3. print {} and 5
  4. print False and 5
  5. print True and 5
  6. print "-----"
  7. print [] or 5
  8. print {} or 5
  9. print False or 5
  10. print True or 5
  11. print "-----"
  12. print 5 and []
  13. print 5 and {}
  14. print 5 and False
  15. print 5 and True
  16. print "-----"
  17. print 5 or []
  18. print 5 or {}
  19. print 5 or False
  20. print 5 or True
  21. print "-----"
  22. print [] or {}
  23. print {} or []
  24. print [] or False
  25. print [] or True