#yea

5 messages · Page 1 of 1 (latest)

plush crow
#

= is the assignment operator for varibles, dictionaries, and properties. == is the equal to comparator. It's essential to make the difference clear to the computer which is why we have two.

#

By computer I mean interpreter

mortal garnet
#

TL;DR: In code, we need to assign values to things. We also need to check if two things are equal. To distinguish these two operations from one another, we use two distinct operators:

Assignment operator: =
Equality operator: ==

#

Make sense, @shut egret?