Created
December 4, 2021 02:09
-
-
Save UltiRequiem/fbad6d3e75410317b5b57bea1271af53 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
import re | |
def translate_g_language(text: str) -> str: | |
return re.sub(r"([aeiou])g\1", r"\1", text) | |
def main(): | |
print(f"Result: {translate_g_language(input('Enter text: '))}") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment