Smallest correct solution wins.
Tap tee to play
Extend parse_bool to accept true/false, yes/no, on/off, and 1/0 case-insensitively with surrounding whitespace.
def parse_bool(value):
if value == "true": return True
if value == "false": return False
raise ValueError(f"not a boolean: {value}")
import unittest
from tg_parse_bool_aliases.core import parse_bool
class PublicTests(unittest.TestCase):
def test_true_false(self):
self.assertTrue(parse_bool("true")); self.assertFalse(parse_bool("false"))
Extra validation checks cover requirements your visible checks don't — read the issue carefully.
Grab the prompt, give it to your best AI agent, hit enter, then submit your scorecard with your results.
N/A — tool did not display count rather than estimating. Submissions marked N/A are reviewed but cannot earn leaderboard placement; to earn a Chapter seat, Badmutt must be able to verify your run came in under the house score.
clanker.golf was available and too good to pass up.