Basic Arithmetic Operations
Performing addition, subtraction, multiplication, and division.
Basic Arithmetic Operations is a free Python For Kids lesson on CoddyKit — lesson 2 of 3. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Python For Kids learning path, one of 3 lessons in the course, and your progress syncs across the web and the CoddyKit app.
1
Basic Arithmetic Operations
Welcome to the world of numbers in Python! Today, we'll learn how to perform basic arithmetic operations like addition, subtraction, multiplication, and division.

2
What are Arithmetic Operations?
Arithmetic operations are the basic math calculations we use every day. In programming, these operations help us perform calculations and solve problems using numbers.
3
Addition (+)
Addition is the process of combining two or more numbers to get a larger number. In Python, you use the plus sign (+) to add numbers.
# Example of Addition
a = 5
b = 3
sum = a + b
print("Sum:", sum)4
Explanation:
- a is 5 and b is 3.
- sum is the result of adding a and b.
- The program prints:
Sum: 8
5
Subtraction (-)
Subtraction is taking one number away from another. In Python, you use the minus sign (-) to subtract numbers.
6
Example of Substraction (-)
# Example of Subtraction
a = 10
b = 4
difference = a - b
print("Difference:", difference)
7
Multiplication (*)
Multiplication is the process of adding a number to itself a certain number of times. In Python, you use the asterisk (*) to multiply numbers.
# Example of Multiplication
a = 7
b = 6
product = a * b
print("Product:", product)8
Division (/)
Division is splitting a number into equal parts. In Python, you use the slash (/) to divide numbers.
# Example of Division
a = 20
b = 4
quotient = a / b
print("Quotient:", quotient)
9
Example Program: Simple Calculator
Let's create a simple calculator that adds, subtracts, multiplies, and divides two numbers.
Let's take a look the code ->
10
# Simple Calculator
num1 = 12
num2 = 4
# Addition
addition = num1 + num2
print("Addition:", addition)
# Subtraction
subtraction = num1 - num2
print("Subtraction:", subtraction)
# Multiplication
multiplication = num1 * num2
print("Multiplication:", multiplication)
# Division
division = num1 / num2
print("Division:", division)
11
a = 15
b = 3
result = a / b
print(result)12
Great Job!
You've learned how to perform basic arithmetic operations in Python. Keep practicing by creating your own calculations and see how you can use math in your programs.

Frequently asked questions
Is the “Basic Arithmetic Operations” lesson free?
Yes — the full text of “Basic Arithmetic Operations” is free to read here on the web, and the Python For Kids course includes 3 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Python For Kids course, upgrade to CoddyKit PRO.
What will I learn in “Basic Arithmetic Operations”?
Performing addition, subtraction, multiplication, and division. You practise Python For Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Python For Kids?
No prior experience is required. Python For Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 3, so you can start here or from the beginning and move at your own pace.
How long does the “Basic Arithmetic Operations” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Python For Kids lesson?
Yes. Every Python For Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Variables and Data Types
- Basic Arithmetic Operations
- Input and Output