Joshua C. answered 04/07/19
Tutor
New to Wyzant
Software Engineer in Bay Area
from random import randint
foo = ['a', 'b', 'c', 'd', 'e']
rand_idx = randint(0, len(foo) - 1)
print( foo[rand_idx] )
Joshua C. answered 04/07/19
Software Engineer in Bay Area
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.