From f4754d14ae99b78d045368c3f6ddc667a3402c8a Mon Sep 17 00:00:00 2001 From: rakesh <167434191+rakeshkannepelli@users.noreply.github.com> Date: Tue, 3 Mar 2026 15:05:53 +0530 Subject: [PATCH] updated output added f-string for better formatted output --- Palindrome_Checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Palindrome_Checker.py b/Palindrome_Checker.py index 6f70f0e1c9f..e47e19ef0aa 100644 --- a/Palindrome_Checker.py +++ b/Palindrome_Checker.py @@ -8,6 +8,6 @@ if phrase == phrase[::-1]: # slicing technique """phrase[::-1] this code is for reverse a string very smartly""" - print("\n Wow!, The phrase is a Palindrome!") + print(f"\n Wow!, The {phrase} is a Palindrome!") else: - print("\n Sorry, The given phrase is not a Palindrome.") + print(f"\n Sorry, The given {phrase} is not a Palindrome.")