Program - to get a random element from an array in python


Topic: Program - to get a random element from an array in python

Solution

import random
list_ = [1,2,3,4]
random.choice(list_)



List all Python Programs