From 254df4d58abc1dbaf27534ef390e0b2ddf37f3ae Mon Sep 17 00:00:00 2001 From: aursh_sinha <121930064+aursh24@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:56:01 +0530 Subject: [PATCH] Palindrome I have added a Palindrome programme to the repository. --- Pallindrome mystyle.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Pallindrome mystyle.py diff --git a/Pallindrome mystyle.py b/Pallindrome mystyle.py new file mode 100644 index 0000000..3eb7eaf --- /dev/null +++ b/Pallindrome mystyle.py @@ -0,0 +1,15 @@ +def hh(): + while True: + f = input('Enter The Word : ') + s=f + if f[::-1]==s: + print('Output ---- Palindrome') + else: + print('Output ---- Not a Palindrome') + print('\n') + print('Do you want to check about more Words? "(y/n)"') + a = input() + if a == 'n' or a == 'N': + print('--- Program Ends ---') + break +hh()