07/12/2025
β Programming Basics: Types of Operations
Ready to level up your coding skills? π
Here are the main types of operations every beginner should know!
π’ 1. Arithmetic Operations
Used for maths and calculations.
Examples:
β’ 5 + 3 β 8
β’ 10 - 4 β 6
β’ 2 * 6 β 12
β’ 10 / 2 β 5
β’ 10 % 3 β 1 (remainder)
β’ 2 ** 3 β 8 (exponent)
β’ 10 // 3 β 3 (floor division)
βοΈ 2. Comparison Operations
Compare values and return True/False.
Examples:
β’ == (equal)
β’ != (not equal)
β’ > (greater than)
β’ < (less than)
β’ >= (greater or equal)
β’