fork download
  1. i = True
  2. j = False
  3.  
  4. print i and j
  5. print i or j
  6. print not i
  7.  
  8. i = 1.5
  9. j = 0
  10.  
  11. print (i and j)
  12. print (i or j)
  13. print bool(i or j)
  14. print not not(i or j)
  15. print not i
  16.  
Success #stdin #stdout 0s 7896KB
stdin
Standard input is empty
stdout
False
True
False
0
1.5
True
True
False