• Home
  • Python
    • Introduction to Python
    • Python Developer
  • JavaScript
    • Introduction to JavaScript
    • JavaScript Developer
  • React.js
    • Introduction to React
    • React Developer
  • Interactive Training
  • Pricing
  • Brainstorm
STEMTrainingGrounds
  • Courses
    • Home
    • Python
      • Introduction to Python
      • Python Developer
    • JavaScript
      • Introduction to JavaScript
      • JavaScript Developer
    • React
      • Introduction to React
      • React Developer
  • Interactive Training
  • Pricing
  • Brainstorm

Quick Links

  • About Us
  • Pricing
  • Partnership
  • Brainstorm
  • Terms
  • Privacy
  • Refunds

Courses

  • Python
    • Introduction to Python
    • Python Developer
  • JavaScript
    • Introduction to JavaScript
    • JavaScript Developer
  • React
    • Introduction to React
    • React Developer

Newsletter

Subscribe to our free monthly newsletter, for a quick update on Python, JavaScript, and React news

© 2025 - 2026 STEMTrainingGrounds. All Rights Reserved.

Introduction to Python - Lesson 3

Lesson 3 of 16

Operators

Lesson Progress: 0%

Lesson Progress: 0%
Operators
Lesson Incomplete
← Previous: Data Types
Lesson 3 of 16
Next: Variables →
Code Example
print(5 + 2)
print(10 + 3)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • Python can do math for us, like a calculator.
  • Operators are simply special symbols that can be used to do math.
  • The plus sign + means add.
  • print(5 + 2) tells Python to add 5 and 2, then show the answer.
  • print(10 + 3) does the same thing with 10 and 3, then prints the new answer.
Code Example
print(8 - 3)
print(10 - 4)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • Python can do math for us, like a calculator.
  • Operators are simply special symbols that can be used to do math.
  • The minus sign - means subtract.
  • print(8 - 3) tells Python to take 3 away from 8 and show the answer.
  • print(10 - 4) tells Python to take 4 away from 10 and print the answer.
  • Each line does one math problem.
  • Python figures out the answer and prints it for us.
Code Example
print(4 * 2)
print(3 * 3)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • The * sign in Python multiplies numbers together.
  • print(4 * 2) tells Python to multiply 4 by 2 and show the answer.
  • print(3 * 3) tells Python to multiply 3 by 3 and print the answer.
Code Example
print(10 / 5)
print(12 / 6)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • The / sign in Python divides one number by another.
  • print(10 / 5) tells Python to divide 10 by 5 and show the answer.
  • print(12 / 6) tells Python to divide 12 by 6 and print the answer.
  • Division helps us split a number into equal parts.
Code Example
print(10 % 3) 

print(8 % 4)

print(7 % 5)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • The % sign in Python gives back the leftover part after dividing.
  • print(10 % 3) shows the leftover after 10 is divided by 3.
  • print(8 % 4) shows the leftover after 8 is divided by 4, which is 0.
  • print(7 % 5) shows the leftover after 7 is divided by 5.
Code Example
number = 7
print(number % 2)
print(number % 2 == 0)
print(number % 2 == 1)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • The % sign in Python gives the leftover part after dividing.
  • print(number % 2) shows the leftover when the number is divided by 2.
  • print(number % 2 == 0) checks if the leftover is 0.
  • print(number % 2 == 1) checks if the leftover is 1.
  • This is a simple way to check if a number is even or odd.
Code Example
number = 10
print(number % 2)
print(number % 2 == 0)
print(number % 2 == 1)

Instructions

▲ ← Click the triangle to hide or reveal instructions.
  • The code editor is below.
  • The left side of the code editor is where you type your input code.
  • The right side of the code editor is where you see the output of your code.
  • Practice by typing the code example above, in the left side of the code editor below.
  • Then click the "Run Code" button, to run the code.
  • You will see the output of your code in the output section.

Python Code Editor

Task Incomplete

Editor Input:

Editor Output:

Click "Run Code" to see the output here
  • The % sign in Python gives the leftover part after dividing.
  • print(number % 2) shows the leftover when the number is divided by 2.
  • print(number % 2 == 0) checks if the leftover is 0.
  • print(number % 2 == 1) checks if the leftover is 1.
  • This helps us check if a number is even or odd, and 10 is even.

Test Incomplete

What does the plus sign (+) mean in Python?

Question #

1/15

Score

0/0 - 0.0 %