Created
December 13, 2019 07:08
-
-
Save santhalakshminarayana/3325347c2c38fc042cb943bf2cba0c28 to your computer and use it in GitHub Desktop.
Indian Name Generator - Generator Example - Medium
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
text_count = 0 | |
input_text = 'PRIYA' | |
while text_count < 50: | |
gen_text = generate(input_text) | |
gen_text = gen_text.strip('.') | |
if len(gen_text) > 6 and gen_text not in names: | |
text_count += 1 | |
input_text = gen_text | |
print(gen_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment