num = 21
zone = 2

if num & (1 << zone):
    print(True)
else:
    print(False)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: