Rodripelto

Cambiar_vocales

Feb 21st, 2022 (edited)
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. clave = {"a":"0","e":"2","i":"4","o":"6","u":"8"}
  2.  
  3. frase = input("Escribe la frase a codificar:")
  4.  
  5. for key in clave.keys():
  6.   frase = frase.lower().replace(key ,clave[key])
  7. print (frase)
Add Comment
Please, Sign In to add comment