1 == True but 1 is not True: The Truth About True
Today I was playing around with Python and stumbled on some truths (pun intended ๐).
I realized I was a bit fuzzy on when to use == vs is. So let's explore this a bit!
You've probably seen this before:
x = True
print(x is True) # โ
True
x = 1 == 1...
learnwithasha.hashnode.dev1 min read