DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to randomize order of a list python
import random mylist = ["apple", "banana", "cherry"] random.shuffle(mylist) print(mylist)
PREVIOUS
NEXT
Tagged:
#randomize
#order
#list
#python
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit