Monday, May 19, 2014

Day 44

Explored Python at CodeCademy. Worked on Python tutorial 2 of 5, Tip Calculator, The Tax. Created a variable "tax" and set it equal to the decimal value of "6.75%."

The code used:
# Assign the variable tax the value 67.5%!
meal = 44.50
tax = 0.0675

There was no interaction, the code simply set the variables to the corresponding values.

No comments:

Post a Comment