Advertisement
davide1409

palindroma

Nov 15th, 2019
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def palindroma(s):
  2. #@param s: string
  3. #@return bool
  4.   pal_str = ''
  5.   for i in range(len(s)-1,-1,-1):
  6.     pal_str+=s[i]
  7.  
  8.   return s == pal_str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement