Skip to content

Instantly share code, notes, and snippets.

@vikychoi
Created November 6, 2017 04:43
Show Gist options
  • Save vikychoi/9b0d46a608db5b51f5006069a363f3b4 to your computer and use it in GitHub Desktop.
Save vikychoi/9b0d46a608db5b51f5006069a363f3b4 to your computer and use it in GitHub Desktop.
a=[]
b=[]
length = int(input("how long is the list"))
for _ in range(length):
a.append(input("please input item into the list"))
b = (a[::-1])
if a == b:
print("its a palindrome")
else:
print("its not a palindrome")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment