Lesson 01/05 – The Meal
[code lang=”python”]
Assign the variable meal the value 44.50 on line 3!
meal = 44.50
[/code]
Lesson 02/05 – The Tax
[code lang=”python”]
meal = 44.50
tax = 0.0675
[/code]
Lesson 03/05 – The Tip
[code lang=”python”]
You’re almost there! Assign the tip variable on line 5.
meal = 44.50
tax = 0.0675
tip = 0.15
[/code]
Lesson 04/05 – Reassign in a Single Line
[code lang=”python”]
Reassign meal on line 7!
meal = 44.50
tax = 0.0675
tip = 0.15
meal = meal + meal * tax
[/code]
Lesson 05/05 – The Total
[code lang=”python”]
Assign the variable total on line 8!
meal = 44.50
tax = 0.0675
tip = 0.15
meal = meal + meal * tax
total = meal + meal * tip
print("%.2f" % total)
[/code]