Answer:
def budget():
cost = int(input("Enter the cost of purchase: "))
weeks = int(input("Enter the number of weeks: "))
savings = round(cost / weeks, 2)
return savings
budget()
Explanation:
The python program defines a function called "budget" that prompts the user for the integer number value of the cost of purchase and the number of weeks for the budget and returns the savings within the specified number of weeks.
Answer:
First: Ask the user for the cost of the purchase and the number of weeks
Next: Divide the cost of the purchase by the number of weeks
Last: Check for accuracy
Explanation: