Source Code:
(back to article)
import random my_list = [1, 2, 3, 4, 5] random_item = random.choice(my_list) print(random_item)
Result:
Report an issue