Advertisement
Spocoman

08. Palindrome Integers

Jan 28th, 2022
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. nums = input().split(', ')
  2.  
  3.  
  4. def palindrome(n):
  5.     return 'True' if nums[n] == nums[n][::-1] else 'False'
  6.  
  7.  
  8. for num in range(len(nums)):
  9.     print(palindrome(num))
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement