Question: Python help! I have written a program that will run and output correctly except for times when budget = 4000 and project 1 = 2000

Python help! I have written a program that will run and output correctly except for times when budget = 4000 and project 1 = 2000 so it exits the loop and thinks the budget is exceeded. I need some help getting it to run correctly. Thank you!

Python help! I have written a program that will run and output

3.19 (LAB) Budget ( Python 3 ) ( Loops). We're going to ask the user for a budget. This is the max amount they can spend on remodeling their home. (1 pt) What is the budget? : 10000 You will continually loop asking the user for an amount of a project that is being done. Keep asking the user until the total is greater than or equal to the budget. (5 Pts) What is the budget? : 4000 Enter an amount of a project : 2000 Enter an amount of a project: 1000 Enter an amount of a project : 1500 You've exceeded your budget, with a total of 4500 dollars in 3 projects If the total exactly matches the budget, then the final line should say hit instead of exceeded

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!