From d17d586f66a0c8f0d105cb3affc38b190517401d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 11 Sep 2020 00:47:04 +0200 Subject: [PATCH] oops --- strat/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strat/main.py b/strat/main.py index 3ad2b2f..61a1782 100644 --- a/strat/main.py +++ b/strat/main.py @@ -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