You would probably want to prompt the user for the cost of the meal using:
meal = float (input ("Enter cost of meal: "))
Have you downloaded and installed Python. If you haven't done that, you will have to do that.
Here are additional Python resources:
http://www.greenteapress.com/thinkpython...
http://docs.python.org/2/tutorial/index....
http://www.tutorialspoint.com/python/
http://learnpythonthehardway.org/book/
I'm a beginner programmer, just started learning Python at codeacademy.org...
I did an exercise where I calculated the total cost of a meal, like this.
meal = 20.00
tip = 2.50
tax = 0.07
meal = meal + meal * tax
meal = meal + tip
print(meal)
23.9
Is there a way I can save this into a file that you run, and enter your own value for meal so that it would automatically calculate the total based on the cost of your meal?