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()
Step-by-step 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.