Skip to main content

Timeline for Generate 10 random 3-letter strings

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Jul 19, 2018 at 0:17 vote accept Koray Tugay
Jul 10, 2018 at 22:54 comment added Alexander I would not recommend doing from random import choices. choices isn't a comprehensive enough name to stand on its own like that. random.choices(...) seems like a much more readable choice (pun intended).
Jul 10, 2018 at 20:20 comment added Graipher @KorayTugay It is shorter than ["".join(choice(ascii_lowercase) for _ in range(3)) for _ in range(10)]. IMO this makes it also easier to read. Whether or not it is easier to read than writing out the for loop, that depends a bit on how used you are to list comprehensions. I think this one is not yet pushing it so far as to become unreadable.
Jul 10, 2018 at 8:37 history answered Graipher CC BY-SA 4.0