average strategy with not fucked avg function
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c68e220be3
commit
cfd8f3b899
@ -2,7 +2,10 @@ import numpy as np
|
|||||||
|
|
||||||
|
|
||||||
def avg(ls: list) -> int:
|
def avg(ls: list) -> int:
|
||||||
return sum(ls) / len(ls)
|
if len != 0:
|
||||||
|
return sum(ls) / len(ls)
|
||||||
|
else:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def decision(h1, h2):
|
def decision(h1, h2):
|
||||||
|
Loading…
Reference in New Issue
Block a user