r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 26 '20

[deleted]

2

u/Red_AtNight Aug 26 '20

My favourite list functions are in the random library - random.choice([list]) returns one item from list chosen at random. Or random.shuffle([list]) reorganizes everything in list in a random order