Advertisement
BdW44222

05. Palindrome Integers

Jun 11th, 2021
958
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def is_palindrome():
  2.     list_of_number = input().split(", ")
  3.  
  4.     for el in list_of_number:
  5.         if el == el[::-1]:
  6.             is_true = True
  7.             print(is_true)
  8.         else:
  9.             is_true = False
  10.             print(is_true)
  11.  
  12.  
  13. is_palindrome()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement