Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nums = input().split(', ')
- def palindrome(n):
- return 'True' if nums[n] == nums[n][::-1] else 'False'
- for num in range(len(nums)):
- print(palindrome(num))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement