(Solved):PYTHON: Lottery Number Generator Question: Design a program that generates a seven-digit lottery number. The program should generate seven random numbers, each in the range of 0 through 9, and ass… View Answer…

 

Question

PYTHON: Lottery Number Generator

Question: Design a program that generates a seven-digit lottery number. The program should generate seven random numbers, each in the range of 0 through 9, and assign each number to a list element. Then write another loop that displays the content of the list.

What I have:

import random
def main():
#Create a list
numbers=[0]*7
#populate the list with random numbers
for index in

Scroll to top