0

Guys I’m a beginner at this and need help with Python code :o

# Quarterly change from a year earlier in visits to the uk from overseas residents (ons) visits = [6.9, 1.6, 2, 7,.4, 8.8, 1.5, 3.6, 13.1, 7.9, -5.8, -3.4, -4.5, -16.1] I made errors when coding the median in Python. Been stuck on this for days. So, how would this be coded in Python?

18th Jan 2022, 4:20 PM
Ihussss
2 Antworten
+ 3
To get the median 1) sort the list 2) determine the index/ the indices of the center value/s
18th Jan 2022, 4:55 PM
Lisa
Lisa - avatar
+ 1
Pls explain better. What exactly should the code do? Pls edit the question, including the explanation, the code, linked from code playground with + button, and telling which is your difficulty. So we'll know how to help.
18th Jan 2022, 4:37 PM
Emerson Prado
Emerson Prado - avatar