Question: Write a Mark Six python program The program should be written in A2Q2.py. Requirements: 1. A function named generate_mark_six() a. Create a list of

Write a

Write a "Mark Six" python program The program should be written in ""A2Q2.py". Requirements: 1. A function named generate_mark_six() a. Create a list of integers containing six different integers just like the "Mark Six" b. Generate random number using the library random by random.randint () only (from 1 to 49) c. Use while loop in this question d. There should be no duplication in the number list e. Return the number list 2. A main function a. Get the number list by generate_mark_six () b. Print the result 3. The main function is run only if "A2Q2.py" is run directly Sample Program Output: The result of today's Mark Six is [10, 29, 4, 9, 14, 15] Process finished with exit code 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question instructs us to write a Python program that simulates the Mark Six lottery draw generat... View full answer

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!