Question: in python w comments! use ifs, elifs, no loops Write a program that randomly generates a 2-digit lottery number. Then ask the user to enter

in python w comments! in python w comments! use ifs, elifs, no loops Write a program
use ifs, elifs, no loops

Write a program that randomly generates a 2-digit lottery number. Then ask the user to enter a 2-digit number. If the user's entered number matches the lottery number, the user wins $10,000. If the user's entered number has the same two digits as the lottery number, but in the wrong order, the user wins $3,000. If one digit in the user's number matches one digit in the lottery number, the user wins $100. Otherwise the user wins $0. Print out how much the user has won

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!