Skip to content

Instantly share code, notes, and snippets.

@fbidu
Last active August 10, 2018 02:21
Show Gist options
  • Save fbidu/fc601789a5d2f6708b3bd30d72294ae0 to your computer and use it in GitHub Desktop.
Save fbidu/fc601789a5d2f6708b3bd30d72294ae0 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
def mememe(frase):
"""
Função que retorna um link pra uma imagem mememe do mimimi
"""
url_template = "https://memegen.link/custom/{original}/{mimimi}.jpg?alt=https://i.imgur.com/UvvvAJP.jpg&font=impact"
mimimizado = mimimi(frase)
url = url_template.format(original=frase, mimimi=mimimizado)
return url
@m4scosta
Copy link

Kkk muito bom bidu!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment