diff options
author | Ankit Aggarwal <ankitaggarwal011@gmail.com> | 2015-10-16 20:42:03 +0530 |
---|---|---|
committer | Ankit Aggarwal <ankitaggarwal011@gmail.com> | 2015-10-16 20:42:03 +0530 |
commit | 451ccaec5b489f0144cf3d537c0debb73ebd3c82 (patch) | |
tree | e5de0c1b818fb113caf1603b99b7275821fe8eb4 /python.html.markdown | |
parent | 91218b4fce343aaf0823d8b8ff0d50c4378ede02 (diff) |
Adding documentation on ternary operator
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python.html.markdown b/python.html.markdown index b939ebbe..daaeb70c 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -165,6 +165,7 @@ some_var # => 5 some_other_var # Raises a name error # if can be used as an expression +# Equivalent of C's '?:' ternary operator "yahoo!" if 3 > 2 else 2 # => "yahoo!" # Lists store sequences |