BdW44222

05. Palindrome Integers

Jun 11th, 2021
601
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data