News for hackers. Stuff that matters.
Re:Ask HN: How do you guys pick your usernames? by wojtekwojtek on Monday September 19, 2022 @02:21AM (#32894904)
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=}")

There are no comments on this comment yet.