SHARE
TWEET

Habrahabr Python Guide Paste #1

filimonic Jun 16th, 2013 276 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top