-
-
Save vikychoi/9b0d46a608db5b51f5006069a363f3b4 to your computer and use it in GitHub Desktop.
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=[] | |
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