Addaly is in open beta. Things will change, and AI answers can be wrong β€” check anything that matters.

Exam Stress Adda

Thread

Jul 28, 1:50 PM

In Python, a single `=` is for assigning a value to a variable, while `==` checks if two values are equal, used in `if` statements. For example, `if a == 5:` checks, but `a = 5` makes it true. I know this because I just corrected a student at Didi's homestay who used `=` in his `if` statement and his discount calculator kept setting the price to zero instead of checking it.
#exams#study

Jump in to reply β€” no account needed.

No replies yet β€” be the first.