Equality | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Equality

I don't know the difference between the 'is' statement and the '=='. I thought they're meant to perform the same function??

23rd Jun 2020, 6:57 PM
...
... - avatar
3 Réponses
+ 4
is means more literally "This is that". Like I have a friend named Samantha. I call her Sam. Sam IS Samantha == means is equal to. Let's say i have a truck. A Ford F150. My buddy has the same truck! My truck is equal to his truck BUT my truck is not his truck because we obviously have two different vehicles (they have the same value though).
23rd Jun 2020, 7:13 PM
Slick
Slick - avatar
+ 1
Thanks boss.... ...um.. ..one more thing.... ...I'd appreciate if I could get this in a code
23rd Jun 2020, 7:39 PM
...
... - avatar