Skip to content

Commit

Permalink
Update ternary_operators.rst (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpastuszuk authored and yasoob committed Nov 13, 2018
1 parent a813faa commit dcc0c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ternary_operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Syntax was introduced in Python 2.5 and can be used in python 2.5 or greater.
>>> False or "Some"
'Some'
The first statement (`True or "Some"`) will return `True` and the second statement (`False or "Some"`) will return `False`.
The first statement (`True or "Some"`) will return `True` and the second statement (`False or "Some"`) will return `Some`.

This is helpful in case where you quickly want to check for the output of a function and give a useful message if the output is empty:

Expand Down

0 comments on commit dcc0c1d

Please sign in to comment.