Skip to content

Instantly share code, notes, and snippets.

@kevin-weitgenant
Created August 2, 2016 14:21
Show Gist options
  • Save kevin-weitgenant/b2d1ae4100c716f6e981350a494cb15d to your computer and use it in GitHub Desktop.
Save kevin-weitgenant/b2d1ae4100c716f6e981350a494cb15d to your computer and use it in GitHub Desktop.
practicepython.org Exercise 06
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