Question: larr InClass 3 _ 9 . py x #Generate a three digit number between 1 0 0 to 9 9 9 ( inclusive ) .

larr InClass3_9.py x
#Generate a three digit number between 100 to 999(inclusive). This is the lottery number
#Prompt the user to enter a three digit number between 100 to 999(inclusive)
#Determine whether the user wins the lottery based on these rules:
# If user input matches lottery number, user wins $10,000 and display: You win $10,000!
# For everything else, display: Sorry, you don't win anything this time.
#Print the lottery_number to test the program for different scenarios.
# WARNING! Delete the print(lottery_number) before submitting the file
#Examples:
#Lottery number: 293
#Enter three digit number: 193
#You win $1,000!
#Lottery number: 595
#Enter three digit number: 599
#You win $1,000!
#Lottery number: 977
#Enter three digit number: 977
#You win $10,000!
#Lottery number: 345
#Enter three digit number: 977
#Sorry, you don't win anything this time.
NEED PYTHON CODE THANK U!
 larr InClass3_9.py x #Generate a three digit number between 100 to

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!