From c36260f38e605510942e840109818e4715aebcfa Mon Sep 17 00:00:00 2001 From: Austin-X Date: Thu, 9 Jul 2026 16:06:27 -0400 Subject: [PATCH] Fix print statement formatting in ternary example --- ternary_operators.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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