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 and mambelli committed Jun 4, 2024
1 parent 9317f75 commit 5d16fe9
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 @@ -32,9 +32,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 5d16fe9

Please sign in to comment.