Answers for "random.choice() in python"

8

random.choice

import random

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

Python Answers by Framework

Browse Popular Code Answers by Language