get random list element python code example
Example 1: how to randomly choose from a list python
random.choice(name of list)
Example 2: python random list
import random
randomlist = []
for i in range(0,5):
n = random.randint(1,30)
randomlist.append(n)
print(randomlist)