Question: The function should be implemented so that generates a lottery number consisting of 6 numbers. The program should generate six random numbers, the first five

The function should be implemented so that generates a lottery number consisting of 6 numbers. The program should generate six random numbers, the first five should be in the range of 1 through 69(no duplicate numbers in the first five).
The sixth number(power number) should be in the range of 1 through 26. Assign each number to a list element.
Then write another loop to display the lottery number which is the content of the list. (If you are not sure about the 6 numbers, then look at the example of Power Ball Lottery)
The first five numbers must be sorted from least to most.
Also, the answer must print WITHOUT BRACKETS around the numbers. (ex.12234052605)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!