Advertisement
filimonic

Habrahabr Python Guide Paste #1

Jun 16th, 2013
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #Python 3.3.2
  2.  
  3. >>> x = 10
  4. >>> if (x<10) or (x>20):
  5. ...     print("x is bad")
  6. ... elif 10 < x < 20 :
  7. ...     print("x is good!")
  8. ... else :
  9. ...     print("x is werid")
  10. ...
  11. x is werid
  12.  
  13.  
  14. >>> x = 11
  15. >>> if (x<10) or (x>20):
  16. ...     print("x is bad")
  17. ... elif 10 < x < 20 :
  18. ...     print("x is good!")
  19. ... else :
  20. ...     print("x is werid")
  21. ...
  22. x is good!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement