CHAPTER 13 •
PYTHON
Python Operators
Learn arithmetic, comparison and logical operators.
01 What is this?
Learn arithmetic, comparison and logical operators.
02 Syntax
Python Syntax
a + b
03 Example
Python Example
a = 10 b = 5 print(a + b) print(a - b) print(a * b) print(a / b)
04 Important Points
Operators perform calculations and comparisons.
05 Common Mistakes
Use the correct operator for the required operation.
06 Real World Use
Operators are fundamental to calculations and decision-making.
07 Practice This Topic
Now try the example yourself in the AIFA Python Editor.
- Read the example carefully.
- Change the values.
- Run the code.
- Observe the output.
- Try creating your own example.