Sobes.tech
Junior — Senior

Homemade number range generator

livecode

Task condition

It is necessary to write your own version of a function similar to the built-in range. The function should return an iterator that iterates over integers starting from the specified value, ending (but not including) the final parameter, and progressing with the specified step.

# example interface
def custom_range(begin: int, end: int = None, step: int = 1):
    ...