Answers for "random python choose"

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

Python Answers by Framework

Browse Popular Code Answers by Language