I had the program working good except for 1 thing. If you entered any charcter other than a number it kicked you out of the program.
Well I told my teacher this and he inserted a IF isinstance statement.
and now it just loops on anything you enter including the numbers in the menu.
def main(): endProgram = 'no' integerchoice=0 totalBudget=4000 while endProgram == 'no': print print 'Welcome to the Personal Budget Program' print print 'Menu Selections' print '1-Add an Expense' print '2-Remove an Expense' print '3-Add Revenue' print '4-Remove Revenue' print '5-Check the Balance of your Budget' print '6-Exit' print choice=int(raw_input('Please enter your selection: ')) if isinstance(choice,int): if choice == 1: totalBudget = addExpense(totalBudget) elif choice == 2: totalBudget = removeExpense(totalBudget) elif choice == 3: totalBudget = addRevenue(totalBudget) elif choice == 4: totalBudget = removeRevenue(totalBudget) elif choice == 5: print ('The balance you have left is: $%.2f ' )%totalBudget elif choice == 6: endProgram = 'yes' print 'Thank you for using our program, Have a Nice Day ' elif choice != int: print 'I am sorry, That was an invalid selection, please try again.' print else: print "I am sorry, That was an invalid selection, please try again."