Skip to content

Commit

Permalink
Fix multiply by 2
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBaburashvili authored Jun 4, 2024
1 parent 238fd70 commit 5bce8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/planetsmath/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 5bce8fd

Please sign in to comment.