Question: Write a menu-driven python program. There will be 3 different options in menu; 1- Call the guess_number.py module. Your program will generate a random number
Write a menu-driven python program. There will be 3 different options in menu; 1- Call the guess_number.py module. Your program will generate a random number between 20- 40 and will give 6 chances to user to guess it. If user guess correct, print screen to Congratulations, else print !!Please Try Again!! and back to menu. 2- Call the dice_rolling.py module. Imagine there are 3 different players. When the program runs, it will ask to user how many times the dice will be thrown? Then, it will randomly generate numbers between 1 and 6 and sum them. Then you will print the score of player one, two and three and print the winner of game. Then back to menu. 3- Exit the program. If user enter an option except these 3 (like 4,5 or -1), you will give a warning and print menu again.
(You will write a comment for your each line of code and of course it will be in English. )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
