def make_level_generator():
    """Yields the number of C-equivalent kLOCs needed to advance to the next
    level.

    """
    xp = 0
    level = 1
    while True:
        yield level, xp
        level += 1
        xp = level * 1000 * (level - 1) / 8
dataset/ETHPy150Open the-xkcd-community/the-red-spider-project/src/level_up.py/make_level_generator/original