Key Ideas
1Arithmetic Operators. Arithmetic operators perform mathematical calculations. Python has 7 of them — you know most from school, but two are unique to programming.
2Comparison Operators. Comparison operators compare two values and always return a boolean — either True or False. They are the backbone of every if statement and loop condition you'll ever ...
3Logical Operators. Logical operators combine multiple boolean expressions. Python uses English words (and, or, not) instead of symbols like && and || used in other languages — ma...
4Assignment Operators. You already know = for assigning values. Python also has augmented assignment operators that combine an arithmetic operation with assignment in one step.
5Identity & Membership Operators. Two more operator categories complete the picture. You've already seen in with strings — it works on all Python collections.