python how to randomly choose an item from a list code example
Example: python how to randomly choose an item from a list
import random
nums = ['a', 'b', 'c', 'd', 'e']
print(random.choice(nums))
import random
nums = ['a', 'b', 'c', 'd', 'e']
print(random.choice(nums))