Hacker News new | ask | show | jobs
by wojtekwojtek 1375 days ago
You may use `string.ascii_letters` to use both cases of ascii letters

Instead of extending the array two times, simply go with s = [ s1, s2, ]

or even simpler s1 + s2

And more idiomatic print (IMO):

login = "".join(random.sample(s, 12)) print(f"{login=}")