Introduction to Python

THETOTAL

In this slide, I entered all variables to equal the total.

 

 

THETIP

I calculated the percent into a decimal and plugged it in for the tip.

THETAX

Calculated the percentage of the tax and converted it into a decimal.

THEMEAL

In here, I assigned the value for the variable which was the meal.

REASSIGN

In this slide I showed how to put all of the variables together before calculating the total.

Print this page