Question: Lottery Number Generator Design a function that generates a six - digit lottery number. The program should generate six random numbers, each in the range
Lottery Number Generator
Design a function that generates a sixdigit lottery number. The program should generate six random
numbers, each in the range of through and assign each number to a list element. This list holds the
lottery winning numbers. The function returns the lotto list.
In the main function, ask the user to enter their digit lottery number. Then decide if the user is a winner
or not. Make sure to display the contents of both the lottery and the player digits.
Rainfall Statistics
Design a function which calculates and displays the following:
total rainfall for the year,
the average monthly rainfall,
the months with the highest and lowest amounts.
The function takes as input the list of rainfall for months of the year. The function does not return
anything.
In the main, call the function using data from the monthly total rainfall of your birth city which is placed
in a list and used as input arguments to the function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
