This commit is contained in:
parent
cfd8f3b899
commit
d17d586f66
@ -2,7 +2,7 @@ import numpy as np
|
||||
|
||||
|
||||
def avg(ls: list) -> int:
|
||||
if len != 0:
|
||||
if len(ls) != 0:
|
||||
return sum(ls) / len(ls)
|
||||
else:
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user