0

I've just started to learn so i was just messing in interpreter and found some weird outputs that I couldn't understand. This is what I did and what i got:

c = -5
c is -5
True

c = -6
c is -6
False

This happened for all values smaller(more negative) than -5. What am I missing?

Here's a screenshot of interpreter

gmc
  • 3,910
  • 2
  • 31
  • 44

1 Answers1

1

You should check out the differences between "is" and "=="

You can see this addressed here Is there a difference between "==" and "is"?