Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def palindroma(s):
- #@param s: string
- #@return bool
- pal_str = ''
- for i in range(len(s)-1,-1,-1):
- pal_str+=s[i]
- return s == pal_str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement