Last active
August 13, 2018 04:56
-
-
Save malandro-sv/1cb8d7500592b28e75093e6db1c80753 to your computer and use it in GitHub Desktop.
Japanese Kid Meme scripter: pipipipipipi :v
This file contains hidden or 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
| # !/usr/bin/python3 | |
| # Nam Lah's text converter: | |
| # Will take a string and stdout all vowels as 'i'. | |
| # 2016, inspired on https://memegenerator.net/Japanese-Kid | |
| # fak u faggitz. | |
| def replacer(t): | |
| new_t = "" | |
| for char in t: | |
| if char.lower() in 'aeou': | |
| new_t += 'i' | |
| elif char.lower() in 'áéóú': | |
| new_t += 'í' | |
| else: | |
| new_t += char | |
| return new_t | |
| text = input('>> ') | |
| print(replacer(text)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment