From 5bce8fd5f73fc380aba1ea304caabe32cd7805bc Mon Sep 17 00:00:00 2001 From: IlyaBaburashvili <48105767+IlyaBaburashvili@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:46:24 -0400 Subject: [PATCH] Fix multiply by 2 --- src/planetsmath/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/planetsmath/functions.py b/src/planetsmath/functions.py index 65142fd..60f2273 100644 --- a/src/planetsmath/functions.py +++ b/src/planetsmath/functions.py @@ -31,9 +31,9 @@ def sum_product(list): def multiply_by_2(list): - product = 1.0 + product = 2.0 for item in list: - product *= 2 + item *= product return product