Skip to content

Instantly share code, notes, and snippets.

@malandro-sv
Last active August 13, 2018 04:56
Show Gist options
  • Select an option

  • Save malandro-sv/1cb8d7500592b28e75093e6db1c80753 to your computer and use it in GitHub Desktop.

Select an option

Save malandro-sv/1cb8d7500592b28e75093e6db1c80753 to your computer and use it in GitHub Desktop.
Japanese Kid Meme scripter: pipipipipipi :v
# !/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