Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[ Python ] Write an if statement that checks the stock number to determine whether or not the bake shop has enough. If we are
Python Write an if statement that checks the stock number to determine whether or not the bake shop has enough. If we are out of stock, print a message that tells the customer there are not enough of that item, and how many we do have left.
Dictionary:
mondaymenu choccy chipper': price: 'stock':
'fudgy pudgy': price: 'stock':
'key lime crime': price: 'stock':
'salty sailor': price: 'stock':
'blueberry blooper': price: 'stock':
Variables:
item inputWhat would you like to order?
quantity intinputHow many would you like?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started