Question: Based on chapter 7 programming exercise #2, design a python program that generates a six-digit lottery number, five numbers + a python ball. The first

Based on chapter 7 programming exercise #2, design a python program that generates a six-digit lottery number, five numbers + a "python" ball. The first five numbers should be between 1 and 69 with no repeating numbers. The "python" ball is a number between 1 and 69 and can be a number generated in the first five. This program will require you to import the random number generator and generate integers.

The program should do the following:

  • begin by asking how many sets of numbers to generate (each set is six-digits)
  • display all the sets of numbers generated
  • ask if another set of numbers should be generated and if "yes" ask how many sets
  • if "no" to more sets the program should end

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 Databases Questions!