Last active
August 10, 2018 02:21
-
-
Save fbidu/fc601789a5d2f6708b3bd30d72294ae0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Muito bom kkkk