How can I randomly select (choose) an item from a list (get a random element)?

How do I retrieve an item at random from the following list?

foo = ['a', 'b', 'c', 'd', 'e']

← Назад к списку