HF RL Explorer

Task: Investigate Python 3 Range Object Performance

Task: Investigate Python 3 Range Object Performance: a task in Terminal-Lego-15k (Harbor dataset). In Python 3, the range() function returns a range object that appears to generate values on the fly, similar to a generator. However, checking membership in a range with extremely large numbers is…

The task

In Python 3, the `range()` function returns a range object that appears to generate values on the fly, similar to a generator. However, checking membership in a range with extremely large numbers is surprisingly fast:

Part of PrimeIntellect/Terminal-Lego-15k.