Answers for "how to use random import to choose an elemnt in a list"

23

how to randomly choose from a list python

random.choice(name of list)
Posted by: Guest on December-04-2019
0

random pick between given things python

import random

numberList = [111,222,333,444,555]
print("random item from list is: ", random.choice(numberList))
Posted by: Guest on December-13-2020

Code answers related to "how to use random import to choose an elemnt in a list"

Python Answers by Framework

Browse Popular Code Answers by Language