Skip to content

Instantly share code, notes, and snippets.

@sertdfyguhi
Created April 6, 2022 17:13
Show Gist options
  • Save sertdfyguhi/14173383328d5048a95f96ed90a11ff6 to your computer and use it in GitHub Desktop.
Save sertdfyguhi/14173383328d5048a95f96ed90a11ff6 to your computer and use it in GitHub Desktop.
spwn project name generator
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