Skip to content

Instantly share code, notes, and snippets.

@rustoceans
Forked from fbidu/mimimi.py
Created November 8, 2016 23:26
Show Gist options
  • Select an option

  • Save rustoceans/916f42554cb5f7819959168eac54eef4 to your computer and use it in GitHub Desktop.

Select an option

Save rustoceans/916f42554cb5f7819959168eac54eef4 to your computer and use it in GitHub Desktop.
def mimimi(frase):
"""
Função que mimimiza frases
>>> mimimi('Por que você não tá estudando pra sua prova de amanhã?')
'Pir qii vici nii ti istidindi pri sii privi di iminhi?'
"""
n = ('ã', 'a', 'e', 'o', 'u', 'á', 'é', 'ê', 'í', 'ó')
for letra in n:
frase = frase.replace(letra, 'i')
return frase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment