equal tag

1 questions


1 answers
20 views
0
How do you compare "foo == None" with ==?

It's strange to compare the integer as is. I thought while looking at , is compares id() based on what?Basic types such as integers can just compare values, but I wonder how to compare objects.

2 years ago

© 2024 OneMinuteCode. All rights reserved.