• How to handle the ''range"?

Question related to mission Median

 

Hi, guys, I have no idea about how to handle the ''range'' of list,for example: assert checkio(list(range(1000000))) == 499999.5, "Long."0

could anybody help me? thanks!