numpy

# Heights of the goalkeepers: gk_heights
gk_heights=np_heights[np_positions == ‘GK’]

# Heights of the other players: other_heights
other_heights=np_heights[np_positions != ‘GK’]

# Print out the median height of goalkeepers. Replace ‘None’
print(« Median height of goalkeepers:  » + str(np.median(gk_heights)))

# Print out the median height of other players. Replace ‘None’
print(« Median height of other players:  » + str(np.median(other_heights)))http://www.ggoo.fr