Question: larr InClass 3 _ 9 . py x #Generate a three digit number between 1 0 0 to 9 9 9 ( inclusive ) .
larr InClasspy
#Generate a three digit number between to inclusive This is the lottery number
#Prompt the user to enter a three digit number between to inclusive
#Determine whether the user wins the lottery based on these rules:
# If user input matches lottery number, user wins $ and display: You win $
# For everything else, display: Sorry, you don't win anything this time.
#Print the lotterynumber to test the program for different scenarios.
# WARNING! Delete the printlotterynumber before submitting the file
#Examples:
#Lottery number:
#Enter three digit number:
#You win $
#Lottery number:
#Enter three digit number:
#You win $
#Lottery number:
#Enter three digit number:
#You win $
#Lottery number:
#Enter three digit number:
#Sorry, you don't win anything this time.
NEED PYTHON CODE THANK U
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
