The objective was to run python on Codecademy.com and complete python syntax in which tip calculator was part of the exercise. We do what is instructed on the left panel. First we declare the variable (meal) and assign it’s value (44.50). Next step is to create the variable (Tax) 6.75% and set it equal to the decimal value which is 0.0675. We then proceed and create the variable (Tip) to decimal value of 15% in which is 0.15. Then it instruct us to reassign the variable (meal) to the value of its self (44.50 + 44.50 and multiply by the tax 0.0675). Finally now that (meal) has the cost of the food and tax we assign a new variable (Total) = (meal + meal) * (tip). The result was 54.63.
- Write a brief paragraph to introduce yourself to your visitors and explain what they will find on this site. Be sure to add more developed content to your About Me page. (Edit this paragraph in Dashboard > Widgets > Text)
Learning Blog Archives
-
Recent Posts
Categories
Tags
-
Categories