Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- def my_poolindrome(s):
- return s == s[::-1]
- print(my_poolindrome(text))
- ///////////////////////////////////////////////
- text = input()
- def is_polindrom(n):
- n_str = str(n)
- for i in range(len(n_str) // 2 + 1):
- if n_str[i] != n_str[-(i + 1)]:
- return 0
- return 1
- print(is_polindrom(text))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement