programming-examples/python/Math/Randomly select an item from a list.py
2019-11-15 12:59:38 +01:00

3 lines
102 B
Python

import random
color = ['Red', 'Green', 'Black', 'Orange', 'Black']
print(random.choice(color))