def earned_exp(base_exp, level):
 return ((base_exp * level) // 7)

def earned_exp ( base_exp , level ) : return ( ( base_exp * level ) // 7 )
returns the amount of exp earned when defeating a pokémon at the given level .