import random lot_choice = 0 lot1 = 1 id(lot1) == 1 lot2 = 2 lot3 = 3 lot4 = 4 lot5 = 5 lot6 = 6 numbers = 6 while numbers > 0 : lottery = random.randint( 1, 40 ) lot_choice = lot_choice + 1 if (lot_choice == lot1): lot1 = lottery print ( lot1 ) else: if (lot_choice == lot2): lot2 = lottery print ( lot2 ) print ( lottery ) print("id of lot1 =", id(lot1)) numbers = numbers -1 print ("lottery numbers:")