rendered paste bodyprice=input("Input price:")
tax=(price*0.085)
total=int((price+tax)*100)
print ("Your total is: $%d.%02d")\
% (total/100, total%100)
cash=input("How much cash?")*100
dollars=int((cash-total)/100)
change=(cash-total)%100
print change
quarter=int(change/25)
change=change%25
print change
dime=int(change/10)
change=change%10
nickel=int(change/5)
penny=change%5
string=[dollars, quarter, dime, nickel, penny]
print "Your total is:", string[0], "dollars,", string[1],\
"quarters", string[2], "dimes", string[3], "nickles and", penny, "pennies"
heres the error
pydev debugger
Input price:30
Traceback (most recent call last):
File "C:\eclipse\plugins\org.python.pydev.debug_1.3.9\pysrc\pydevd.py", line 784, in <module>
debugger.run(setup['file'], None, None)
File "C:\eclipse\plugins\org.python.pydev.debug_1.3.9\pysrc\pydevd.py", line 636, in run
execfile(file, globals, locals) #execute the script
File "C:\Documents and Settings\assbees\workspace\crapy\junk.py", line 2, in <module>
price=input("Input price:")
File "<string>", line 1
30
^
SyntaxError: unexpected EOF while parsing