Sep-21-2017, 04:47 AM
Posting this is both for figuring out my homework and to try learning the site's preferred way for me to format my questions. I've looked over the help posts on this topic, but I will only how learn how to format these questions properly by doing so please feel free to help me with this as well as with the problem.
For this program, I need to prompt the user for their monthly budget then ask for each expense (storing each) before finding out how much money is left from the budget.
For this program, I need to prompt the user for their monthly budget then ask for each expense (storing each) before finding out how much money is left from the budget.
def main(): float(raw_input("Enter monthly budget: ")) more = 'y' float(raw_input("Enter monthly expense: ")) if more == 'y': float(raw_input("Enter monthly expense: ")) else: main()If what I have is correct so far (which it very well might not be), all I need is to subtract the expenses from the budget, but I am not quite sure how to do so. Any help (both on the programming and how to post questions properly) would be appreciated.