last time I've gotten some help on making a website name generator. I feel bad but i'm stuck at the moment and I need some help again to improve it. in my code there's a .txt
file called combined which included these lines.
After that i created a variable to add to the domain
web = 'web'
suffix = 'co.id'
And then i write it out so that the it would print the line output to the Combined.txt
output_count = 50
subdomain_count = 2
for i in range(output_count):
out = []
for j in range(subdomain_count):
out.append(random.choice(Test))
out.append(web)
out.append(suffix)
Example.write('.'.join(out)+"\n")
with open("dictionaries/examples.txt") as f:
websamples = [line.rstrip() for line in f]
I want the output where instead of just login.download.web.co.id
there would be more variety like login-download.web.co.id
or login.download-web.co.id
In the code i used Example.write('.'.join(out)+"\n")
so that the.
would be a separator for each characters. I was thinking of adding more, by making a similar code line and save it to a different .txt
files but I feel like it would be too long. Is there a way where I can variate each character separation with this symbol -
or _
instead of just a .
in the output?
Thanks!