Lab 1: Python 1

Description: This lab helped me realize how Python works and what kind of strategies students need when using Python. For an example students should know what “strings”, “floats”, “booleans” and “integers” are referred to. And this lab helped me understand how mathematics are used in python. Also what variables are and how to set them up was also discussed during this lab.

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)

ScreenShot:

untitled untitled1

Leave a Reply

Your email address will not be published. Required fields are marked *