Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def estPalindrome(L):
- if len(L)<=1:
- return True
- else:
- if L[0]==L[len(L)-1]:
- return estPalindrome(L[1:len(L)-1])
- else:
- return False
- estPalindrome([81,42,42,81,12])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement