# Python Basic Concepts
#
# Variable
#
#
Example 1
#
# Input
#
# Numbers
#
# Math Operators
#
#
Example 2
#
# Error
#
#
Example 3
#
1 + 2 + 3 + 4 + .... + 998 + 999 + 1000 = ?
#
2 + 4 + 6 + 8 + .... + 884 + 886 + 888 = ?
#
20! = 1 x 2 x 3 x .... x 18 x 19 x 20 = ?
# Programming Challenge 1 - A Pizza Calculator
#
A Pizza Calculator
- Ask the person how many pizzas they want.
- Ask for the menu cost of each pizza.
- Calculate the total cost of the pizzas as our subtotal.
- Calculate the sales tax owed, at 12 percent of the subtotal. (BC)
- Add the sales tax to the subtotal for the final total.
- Show the user the total amount due, including tax.
#
#
Solution: