diff --git a/ternary_operators.rst b/ternary_operators.rst index 6f9cbbc..0ade5fb 100644 --- a/ternary_operators.rst +++ b/ternary_operators.rst @@ -40,7 +40,7 @@ is some sample code: nice = True personality = ("mean", "nice")[nice] - print("The cat is ", personality) + print("The cat is", personality) # Output: The cat is nice This works simply because True == 1 and False == 0, and so can be done