Lesson 10: Capstone — Price Tag
This is a small capstone that combines what you know so far: text, numbers, variables, arithmetic, and print(). We will build a simple price tag that shows a product name and its total amount.
Store a product name, store a price and quantity, compute the total price, then print the result to the screen.
- variable
- A name that stores a value so we can use it again.
- string (str)
- Text written between quotes.
- total
- The final result you get after the calculation.