Answers for "python pick one item from list"

0

python pick one item from list

import random
my_list = ['one', 'two', 'three']
pick = random.choice(my_list)
print(pick)
Posted by: Guest on July-28-2021

Code answers related to "python pick one item from list"

Python Answers by Framework

Browse Popular Code Answers by Language