import random num = random.sample(range(1, 40), 6) print("Lottery numbers:", num)