Created
August 2, 2016 14:21
-
-
Save kevin-weitgenant/b2d1ae4100c716f6e981350a494cb15d to your computer and use it in GitHub Desktop.
practicepython.org Exercise 06
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
a = input("Say something:") | |
number = int(len(a)) | |
for x in range(number): | |
if a[x] == a[-(x + 1)]: | |
continue | |
else: | |
print("Isn't a palindrome") | |
break | |
if x == number - 1: | |
print("Is a palindrome.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment