Tip Calculator

In the “Tip Calculator” section of the Python tutorials I learned how to assign values to basic variables in integer form as well as turning percents into decimals. The next step was learning how to reassign a variables value after it had already been assigned. The last step on the tutorial informed me on how to input assigned variables in one line to get a correct output.

For example,

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + meal * tax
total = meal + meal * tip.

1 2 3 4 t5