random selection from a list python code example
Example 1: how to randomly choose from a list python
random.choice(name of list)
Example 2: random.choice()
import random
l=[1,2,3,4,5,6,7,8,9,0]
random.choice(l)
print(l);
random.choice(name of list)
import random
l=[1,2,3,4,5,6,7,8,9,0]
random.choice(l)
print(l);