Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def estPalindrome(L):
  2. if len(L)<=1:
  3. return True
  4. else:
  5. if L[0]==L[len(L)-1]:
  6. return estPalindrome(L[1:len(L)-1])
  7. else:
  8. return False
  9.  
  10.  
  11. estPalindrome([81,42,42,81,12])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement