7,621 questions

10,674 answers

573 users

from random import * the_numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] a = sample(the_numbers, 3) print(a) ''' run: [9, 1, 3] '''

from random import * the_numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] a = sample(the_numbers, 3) print(a[0]) print(a[1]) print(a[2]) ''' run: 10 7 1 '''