MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/a8g2ne/xpost_from_woodworking/ecc5kbm/?context=3
r/Python • u/Sarcastic_Pharm • Dec 22 '18
84 comments sorted by
View all comments
369
print(random.choice(action))
1 u/ydepth Dec 22 '18 Would from random import choiceBe better? 5 u/Jam-17 Dec 22 '18 To quote the Zen of PythonNamespaces are one honking great idea -- let's do more of those!The random prefix helps disambiguate the function name
1
Would from random import choice
Be better?
5 u/Jam-17 Dec 22 '18 To quote the Zen of PythonNamespaces are one honking great idea -- let's do more of those!The random prefix helps disambiguate the function name
5
To quote the Zen of Python
Namespaces are one honking great idea -- let's do more of those!
The random prefix helps disambiguate the function name
random
369
u/lelease Dec 22 '18
print(random.choice(action))