import random for i in range(1): numbers = random.sample(range(1, 40), 6) print("Lottery Numbers:", *numbers) #Hi sir if you are marking my work and seeing it i just want to give a little description about my code. #Import random: This function allows you to import one or more modules into your python page. #Range: This function will bulid you a sequence of numbers witha given rage. #Random.sample: This function it randomizes a sample selection