I am adding a .10 (dime) to my variable Value, but when I print the updated variable it only prints out 0.1, instead of 0.10. I need to keep the zero at the end.
Value= 0.00#before this was just 0
quarter = 0.25
nickel = 0.05
dime = 0.10
if s == "quarter":
Value= Value + quarter
print("Value: ", "$", float(Value))
elif s == "nickel":
Value = Value + nickel
print("Value: ", "$", float(Value))
elif s == "dime":
Value= Value + dime
print("Value: ", "$", float(Value))
I am not sure why the zero goes away when the value dime gets added to value :/