average strategy with not fucked avg function
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2020-09-11 00:46:33 +02:00
parent c68e220be3
commit cfd8f3b899
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@ import numpy as np
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):