Fix formatting and remove unnecessary else.
This commit is contained in:
@ -13,7 +13,6 @@ def median(list):
|
||||
list_length = len(list)
|
||||
if list_length % 2 == 0:
|
||||
return (list[int(list_length / 2) - 1] + list[int(list_length / 2)]) / 2
|
||||
else:
|
||||
return list[int(list_length / 2)]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user