MUstar

IoT Python3 0814 - if~else

Aug 15th, 2017
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = 3
  2. if a < 2:
  3.     print("A")
  4.  
  5.    
  6. if a == 3:
  7.     print("B")
  8.  
  9. if a >= 4:
  10.     print("C")
  11.    
  12. else:
  13.     print("D")
  14.    
  15. print(a < 2)
  16. print(a == 3)
  17. print(a >= 3)
RAW Paste Data