DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python random choice in list
import random my_list = ["a", "b", "c", "d"] random_from_list = random.choice(my_list)
Source by pynative.com #
PREVIOUS
NEXT
Tagged:
#python
#random
#choice
#list
ADD COMMENT
Topic
COMMENT
Name
8+1 =
Submit