Python Operators
Operators do work on values. Arithmetic: + - * / // % **. / is true division (7/2 is 3.5). // is floor division (7//2 is 3). ** is power. % is remainder — even/odd uses n % 2 == 0.
Compare with == != > < >= <=. Result is True or False. Logical: and, or, not. Membership: "A" in "Asha". Identity: is compares the same object, == compares value. Freshers write if n = 2 (assign) instead of == (compare).
Board — print(7 / 2, 7 // 2) → 3.5 3. Say that out loud. Then "sha" in "Asha" → True.
Python Operators — output — 3.333…, 3, 1, True. 10//3 is 3. "a" is inside "Asha".
Explain // vs / and in with one tiny example.