Python Operators Class11 12 NCERT
Python Operators Class11 12 NCERT
1. Arithmetic Operators
+ Addition 5+3=8
- Subtraction 5-3=2
* Multiplication 5 * 3 = 15
/ Division 5 / 2 = 2.5
// Floor Division 5 // 2 = 2
% Modulus 5%2=1
** Exponentiation 2 ** 3 = 8
3. Logical Operators
4. Assignment Operators
= Assign x=5
5. Bitwise Operators
| Bitwise OR 5 | 3 -> 7
6. Identity Operators
7. Membership Operators
not in True if value not found 'd' not in 'abc' -> True
1. ()
2. **
Python Operators - Class 11 & 12 (NCERT)
3. Unary +, -
4. *, /, //, %
5. +, -
7. ==, !=
8. not
9. and
10. or