print " " print "Welcome!" print " " print "To view the amount of money you have, type: 1" print "To set the amount of money you have, type: 2" print "To add or subtract to the amount of money you have, type: 3" print "to quit, type: 4" print " " while loop == 1: choice = input("What do you want to do?: ") print " "
if choice == 1: print moneyRead.readline()
if choice == 2: value = input("How much money do you have?: ") moneyWrite.write(value)
if choice == 3: print "The current saved amount is " + moneyRead.readline() print " " print "To add to this amount, type: 1" print "To subtract from this amount, type: 2" choice2 = input("What do you want to do?: ")
if choice2 == 1: value1 = moneyRead.readline() value2 = input("how much do you want to add?: ") value3 = value1 + value2 moneyWrite.write(value3) if choice2 == 2: value1 = moneyRead.readline() value2 = input("how much do you want to subtract?: ") value3 = value1 - value2 moneyWrite.write(value3 )
print " " print "Welcome!" print " " print "To view the amount of money you have, type: 1" print "To set the amount of money you have, type: 2" print "To add or subtract to the amount of money you have, type: 3" print "to quit, type: 4" print " " while loop == 1: choice = input("What do you want to do?: ") print " "
if choice == 1: print moneyRead.readline()
if choice == 2: value = raw_input("How much money do you have?: ") moneyWrite.write(value)
if choice == 3: print "The current saved amount is " + moneyRead.readline() print " " print "To add to this amount, type: 1" print "To subtract from this amount, type: 2" choice2 = input("What do you want to do?: ")
if choice2 == 1: value1 = moneyRead.readline() value2 = raw_input("how much do you want to add?: ") value3 = value1 + value2 moneyWrite.write(value3) if choice2 == 2: value1 = moneyRead.readline() value2 = raw_input("how much do you want to subtract?: ") value3 = value1 + value2 moneyWrite.write(value3 )