Fix formatting and remove unnecessary else.

This commit is contained in:
Lipis
2019-12-26 14:39:01 +02:00
committed by GitHub
parent 8122367bf7
commit df9fe81e3e

View File

@ -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)]
```