diff options
author | Adam <adam@adambard.com> | 2013-06-28 01:33:11 -0700 |
---|---|---|
committer | Adam <adam@adambard.com> | 2013-06-28 01:33:11 -0700 |
commit | ddcab09ff88c29d0eacddf7757eceb751f35ed3d (patch) | |
tree | 1bea947b0d397c3046e7b3967ed6a4bdc9686429 | |
parent | e6010063819b812085b62abc37badc2eff5907d7 (diff) | |
parent | 9b217bc769a4184fb14dfc58387a80e933c0859b (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
-rw-r--r-- | python.html.markdown | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown index 42801657..300a5519 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -49,11 +49,24 @@ False not True #=> False not False #=> True - # Equality is == 1 == 1 #=> True 2 == 1 #=> False +# Inequality is != +1 != 1 #=> False +2 != 1 #=> True + +# More comparisons +1 < 10 #=> True +1 > 10 #=> False +2 <= 2 #=> True +2 >= 2 #=> True + +# Comparisons can be chained ! +1 < 2 < 3 #=> True +2 < 3 < 2 #=> False + # Strings are created with " or ' "This is a string." 'This is also a string.' |