Skip to content

Instantly share code, notes, and snippets.

@mariopepe
Created December 25, 2016 10:23
Show Gist options
  • Select an option

  • Save mariopepe/19bb7398ebef34004e03fc56fb7b90aa to your computer and use it in GitHub Desktop.

Select an option

Save mariopepe/19bb7398ebef34004e03fc56fb7b90aa to your computer and use it in GitHub Desktop.
06 String List
txtInput = str(input("please enter a palindrome: "))
reversedInput = txtInput[::-1]
if reversedInput == txtInput:
print("good job")
else:
print("you missed it")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment