Created
April 30, 2020 13:40
-
-
Save Raj39120/0288b97823e020d479dcf07efa3dacf0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = str(input("Enter letters or words over here that are surrounded by quotes, and the program checks if palindrome: ")) | |
reverse_a = a[::-1] | |
if a == reverse_a: | |
print("This is a palindrome.") | |
else: | |
print("This is not a palindrome.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment