Day 1: Using = instead of == in conditions
❌ The Mistake
❌ Why this fails?
Because = is assignment, not comparison.
Python throws a SyntaxError.
✅ The Correct Way
✔ == compares values
✔ = assigns values
๐ง Simple Rule to Remember
-
=→ Assign -
==→ Compare


0 Comments:
Post a Comment