Question: in python Question 34 (10 points) Saved Write a program lottery.py that randomly generates a lottery number (1-60), and prompts the user to enter number
in pythonQuestion 34 (10 points) Saved Write a program "lottery.py" that randomly generates a lottery number (1-60), and prompts the user to enter number between 1 and 60, and determines whether the user wins according to the following rule: If the user input matches the lottery exactly, the award is $10,000. If only the first digit matches, the award is $3000. (e.g. 51 vs. 55, 24 vs. 28) If the value difference is within 3 (including 3), the award is $1000 (e.g. 5 vs. 2. 21 vs. 19) Hint: To generate a random number, function in the random module. This function returns a random integer i between a and b, inclusively. Note: the indentations are not automatically generated. Pleas manually type spaces to represent indentations. BIU wh
Step by Step Solution
There are 3 Steps involved in it
To solve this problem we will write a Python program named lotterypy to rand... View full answer
Get step-by-step solutions from verified subject matter experts
