Python stores values in variables. Integers represent whole numbers; floats represent decimals. Use +, -, *, and / for arithmetic. The print() function displays a result.
Example:
price = 12
quantity = 3
total = price * quantity
print(total)Try changing quantity and predict the output before running. In the coding lab, calculate the final bill after a discount.