Created
February 11, 2018 23:31
-
-
Save ltagliaferri/14b9b44be0cb1ced054c66550e6dc11d to your computer and use it in GitHub Desktop.
This file contains 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
this_string = input("Input a string: ") | |
reversed_string = "".join(reversed(this_string)) | |
if this_string == reversed_string: | |
print("The string you provided is a palindrome.") | |
else: | |
print("The string you provided is not a palindrome.") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment