I am writing a program for my beginning program class as a final project. I got it all done, except when I run through a module, it causes an endless loop through the same module. Maybe I need a way to clear the choice () every time it runs.
Code:
#This program will help a person keep their budget
totalBudget = 4000
#the main function
def main ():
print 'Welcome to my personal budget calculator'
For a school project, I have to write a budget calculator that will give a menu of adding expenses, removing expenses, adding income and removing income. I have written each a module within my program. And I have the main module saying the original total budget is $4000. How would I make it so that if I were to add or remove from this amount, the other modules would be able to use this adjusted amount?