HF RL Explorer

Task: Fix Recursive Function Returning None

Task: Fix Recursive Function Returning None: a task in Terminal-Lego-15k (Harbor dataset). You are debugging a Python function that uses recursion to validate user input. The function is supposed to prompt the user to enter either "a" or "b", and keep asking until valid input is received. However…

The task

You are debugging a Python function that uses recursion to validate user input. The function is supposed to prompt the user to enter either "a" or "b", and keep asking until valid input is received. However, there's a bug: when the user enters invalid input first and then valid input, the function returns `None`…

Part of PrimeIntellect/Terminal-Lego-15k.