"Write an input variable for y that accepts a decimal number."
from decimal import Decimal usrIn = input('How much money do you have in your account? ') print(repr(usrIn)) usrIn = Decimal('{0:0.5f}'.format(float(usrIn))) print (usrIn)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!