Skip to content

Instantly share code, notes, and snippets.

@ltagliaferri
Created February 11, 2018 23:31
Show Gist options
  • Save ltagliaferri/14b9b44be0cb1ced054c66550e6dc11d to your computer and use it in GitHub Desktop.
Save ltagliaferri/14b9b44be0cb1ced054c66550e6dc11d to your computer and use it in GitHub Desktop.
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