Python 3, 28 bytes
lambda x:max(26-x*11,x%12>0)
-4 bytes thanks to ovs
If the boolean output is invalid (in Python, True == 1
and False == 0
), add +
before the max
to turn it into an int.
lambda x:max(26-x*11,x%12>0)
-4 bytes thanks to ovs
If the boolean output is invalid (in Python, True == 1
and False == 0
), add +
before the max
to turn it into an int.