Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

random choice dictionary python

deck = {
    'King':10,
    'Queen':10,
    'Valete':10}

random.choice(list(deck.keys()))  
 
PREVIOUS NEXT
Tagged: #random #choice #dictionary #python
ADD COMMENT
Topic
Name
6+2 =