Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: How do you guys pick your usernames?. Parent comment
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.
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=}")