This is a program calculating how much to pay with a meal in total which includes tax, meal and tip.
It is a nice feeling when you are able to figure out how to make the program run. It is like playing detective.
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type “copyright”, “credits” or “license()” for more information. >>> # Assign the variable total on line 8!
meal = 44.50 tax = 0.0675 tip = 0.15
meal = meal + meal * tax total = meal + meal * tax
print(“%.2f” % total) >>> >>> # Assign the variable total on line 8!
meal = 44.50 tax = 0.0675 tip = 0.15
meal = meal + meal * tax total = meal + meal * tax
print(“%.2f” % total) >>> >>> print (“Hello”) Hello >>>
At first I was not able to install Pythong on my pc. But I found what was the problem. I was not using the install in Windows. Once I clicked on the right choice everything was smooth.