Deleted


#1



My code is returning 4 instead of 4.5 for [5,4,4,5]. Please help I cannot find my mistake!


def median (lst):
    one = sorted(lst)
  
    if len(one)%2 == 0:
        
        med = (one[(len(one)/2)]+one[(len(one)/2)-1])/2
    else:
        med = one[((len(one)+1)/2)-1]
  

    return med


#2

NEVERMIND. Needed to divide by 2.0
Sorry


#3