Advertisement
simeonshopov

Polindromes

Dec 10th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. numbers =  input().split(', ')
  2.  
  3.  
  4. def palindromes(x):
  5.   for i in x:
  6.     if i == i[::-1]:
  7.       print(f'True')
  8.     else:
  9.       print(f'False')
  10.  
  11.  
  12. palindromes(numbers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement