Oct-23-2018, 12:21 AM
(This post was last modified: Oct-23-2018, 01:22 AM by ichabod801.)
Can someone please fix my code for a simple tip calculator? I am new to Python.
Also how can I round the price of the meal after adding the tip to two decimal places? Thanks.
price_meal = raw_input("How much did your meal cost?") tip = raw_input("How much do you want to tip, in decimal form?") price_meal += price_meal * tip print "Your total cost is %s." % (price_meal)
Also how can I round the price of the meal after adding the tip to two decimal places? Thanks.