summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-08-05 15:33:20 +0200
committerGitHub <noreply@github.com>2020-08-05 15:33:20 +0200
commit7ff98eff4c469246c0b4cf1735fe7c5e6fc6ab4d (patch)
tree0843448af10589dfb860a9d7d7fb9c8a6ef9d6ed /python.html.markdown
parent59c7f495c82c27daa97e5d5f05b4420cd0d68046 (diff)
parentc39746b0bb7a12bf96f3187fa738ccd76ff8fad3 (diff)
Merge pull request #3989 from kevinnls/improve-python_en
[python/en] improved demo of `if` expression
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 44ed7ed9..27b2b22a 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -186,7 +186,7 @@ some_unknown_var # Raises a NameError
# if can be used as an expression
# Equivalent of C's '?:' ternary operator
-"yahoo!" if 3 > 2 else 2 # => "yahoo!"
+"yay!" if 0 > 1 else "nay!" # => "nay!"
# Lists store sequences
li = []