Build me a small algorythm in python that will return 0 or 1 base on some condition

Job ID: 32563053

Budget: $10 – $30 CAD

I need a small algorithm in python that will return 0 or 1 base on some condition
Related categories: Python Algorithm Software Architecture