import random num1 = (random.sample(range (1,40),6)) print ("your lottery numbers are:", num1)