1# Python3 program to demonstrate
2# the use of sample() function .
3
4# import random
5from random import sample
6
7# Prints list of random items of given length
8list1 = [1, 2, 3, 4, 5]
9#format: sample(the_list,number_of_samples)
10print(sample(list1,3))
11