Tuesday, May 20, 2014

Day 45

Explored Python at CodeCademy. Worked on Python tutorial 3 of 5, Tip Calculator, The Tip. Created a variable tip with a decimal value of 15%.

The code used:
# Assign the variable "tip" the value "15%!"
meal = 44.50
tax = 0.0675
tip = 0.15

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

No comments:

Post a Comment