0
I need help with Python
what would be a good code to use to select a random word from a pre-existing list?
3 Answers
+ 1
import random
lst=['a','b','c','d','e',1,2,3,4,5]
print(random.choice(lst))
0
thanks woked great!
- 1
good to hear..â
what would be a good code to use to select a random word from a pre-existing list?