ZeroSeventty

solución palíndrome (Wilmer)

Oct 16th, 2020
874
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def palindromes(arr):
  2.     for i in arr:
  3.         reverse = "".join(reversed(i))
  4.         if reverse == i :
  5.             print(f"{i} es palindrome")
  6.         else:
  7.             print(f"{i} No es palindrome")
  8.  
  9. arr = ['ana', 'antonio', '77', 'oso']
  10.  
  11. print(palindromes(arr))
RAW Paste Data