0
How do I make my tip calculator accept decimal inputs?
I just created a tip calculator that calculates 25% of any kind of bill for a tip. Just need to know how to add decimal inputs instead of just whole number inputs - so that way a more accurate way of determining a tip value is easier for decimal bills.
1 Réponse
+ 5
When you want the user to type in a decimal use float(input()).