Skip to content

Commit f4754d1

Browse files
updated output
added f-string for better formatted output
1 parent baba341 commit f4754d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Palindrome_Checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
if phrase == phrase[::-1]: # slicing technique
99
"""phrase[::-1] this code is for reverse a string very smartly"""
1010

11-
print("\n Wow!, The phrase is a Palindrome!")
11+
print(f"\n Wow!, The {phrase} is a Palindrome!")
1212
else:
13-
print("\n Sorry, The given phrase is not a Palindrome.")
13+
print(f"\n Sorry, The given {phrase} is not a Palindrome.")

0 commit comments

Comments
 (0)