Data Engineering Lab

Arithmetic Operators — Python practice

Q1: Add, subtract — compute a final price

Use + (addition) and - (subtraction) — the two most basic arithmetic operators — to compute a final price from a base price, tax, and discount.

Requirements

  • price = 25, tax = 3, discount = 5
  • Compute total = price + tax - discount
  • Print total

Enable JavaScript to edit code, run the exercise, and review feedback. Your saved work loads in the existing practice workspace.