Rodripelto

Cambiar_vocales

Feb 21st, 2022 (edited)
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data Copied