Created
December 25, 2016 10:23
-
-
Save mariopepe/19bb7398ebef34004e03fc56fb7b90aa to your computer and use it in GitHub Desktop.
06 String List
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
| 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