How to select a random element from a list in Python

1 Answer

0 votes
lst = [11, 22, 33, 44, 55, 66, 77, 88, 99]

import random

print(random.choice(lst))




'''
run:

88

'''

 



answered Mar 4, 2023 by avibootz
...