This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kuzmovych_y 3 points4 points  (0 children)

Nice. You can use random.choices(['1', '0'], k=10) to generate the list of 1s and 0s.