Created
November 4, 2025 14:25
-
-
Save su8/ef62c2f443747a3ab8e7188ab6281f00 to your computer and use it in GitHub Desktop.
generateRandomVariants.py
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 itertools | |
| def variants(word): | |
| return [word, word.capitalize(), word.upper()] | |
| names = ['frost'] | |
| roles = ['home', 'main'] | |
| seperators = ['', '_'] | |
| for n, r, sep in itertools.product(names, roles, seperators): | |
| for nv, rv, in itertools.product(variants(n), variants(r)): | |
| print(f"{nv}{sep}{rv}\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment