HF RL Explorer

Task: Understanding and Implementing Python's nonlocal Keyword

Task: Understanding and Implementing Python's nonlocal Keyword: a task in Terminal-Lego-15k (Harbor dataset). In Python 3, the nonlocal keyword is used to work with variables inside nested functions, where the variable should not belong to the inner function's local scope. This task requires you…

The task

In Python 3, the `nonlocal` keyword is used to work with variables inside nested functions, where the variable should not belong to the inner function's local scope. This task requires you to demonstrate your understanding of the `nonlocal` keyword by implementing specific functions that utilize this feature.

Part of PrimeIntellect/Terminal-Lego-15k.