skycalc/calculator.py
def total_xp(current_lvl, goal_lvl):
        """Return xp needed to advance from a current level to a goal level.

        Attributes:
            current_lvl (int): current character level
            goal_lvl (int): goal level
        """

        def level_up_xp(level):
            """Return xp needed for next level-up at a given level."""
            return (level + 3) * 25

        return sum(level_up_xp(lvl) for lvl in range(current_lvl, goal_lvl))
Return xp needed to advance from a current level to a goal level.

        Attributes:
            current_lvl (int): current character level
            goal_lvl (int): goal level
        
Return xp needed to advance from a current level to a goal level.
Return xp needed to advance from a current level to a goal level .
def total_xp(current_lvl, goal_lvl):
        def level_up_xp(level):
            return (level + 3) * 25
        return sum(level_up_xp(lvl) for lvl in range(current_lvl, goal_lvl))
def total_xp ( current_lvl , goal_lvl ) : def level_up_xp ( level ) : """Return xp needed for next level-up at a given level.""" return ( level + 3 ) * 25 return sum ( level_up_xp ( lvl ) for lvl in range ( current_lvl , goal_lvl ) )
Return xp needed to advance from a current level to a goal level.
Return xp needed to advance from a current level to a goal level .
"""Return xp needed to advance from a current level to a goal level.

        Attributes:
            current_lvl (int): current character level
            goal_lvl (int): goal level
        """ """Return xp needed for next level-up at a given level."""
current_lvl
current character level
current character level
goal_lvl
None