DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to create obtain any random 3 items of list in python
import random as R A=['a','b','c','d','e','f','g','h','i','j'] print(" ",R.sample(A,3))
PREVIOUS
NEXT
Tagged:
#create
#obtain
#random
#items
#list
#python
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit