Created
April 6, 2022 17:13
-
-
Save sertdfyguhi/14173383328d5048a95f96ed90a11ff6 to your computer and use it in GitHub Desktop.
spwn project name generator
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
import re | |
def generate(name: str): | |
return (name[0] + re.sub( | |
'[aeiou ]', | |
'', | |
name[1:-1], | |
flags=re.I | |
) + name[-1]).upper() | |
print(generate(input('name: '))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment