Here is what each line in your program does:
print
out a message;SyntaxError
(due to space in variable name);SyntaxError
(ditto); andprint
two numbers unrelated to theraw_input
you just tried to take.
Instead, you need something like:
print "How much money do I have?",
checking_balance = float(raw_input())
savings_balance = float(raw_input())
print "I have %.2f and %.2f in my accounts." % (checking_balance, savings_balance)
What this does:
print
again- Take input, convert to
float
, and store aschecking_balance
; - As above, with
savings_balance
; and print
the numbers you just inputted, formatted to two decimal places.
(Note: more modern Python would make the last line:
print("I have {0:.2f} and {1:.2f} in my accounts.".format(checking_balance, savings_balance))
)