@wizzwizz4 Testing zero with `is` is safe because it's got a fixed memory address: https://realpython.com/python-is-identity-vs-equality/#when-only-some-integers-are-interned
Try your code with 256 and 257 - you'll see that 256 gives True and 257 gives False.