"Write an input variable for y that accepts a decimal number."
1
Expert's answer
2021-11-04T08:38:02-0400
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)
Comments
Leave a comment