ZeroSeventty

Solución palíndrome (Zero)

Oct 16th, 2020
769
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def palindrom(arr):
  2.     for item in arr:
  3.         if str(item) == str(item)[::-1]:
  4.             print(f"{item} is palindrom")
  5.         else:
  6.             print(f"{item} Ain't palindrom")
  7.  
  8. list = ["ana","juan","pedro","pizza",7007,"reconocer",3443]
  9. palindrom(list)
  10.  
RAW Paste Data