A City Tech OpenLab ePortfolio

Lab 01 Python 1

Lab Description:

How to use the python language on code academy to create a tip calculator.

Code:

# 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)

 

Screenshots:

post1