Skip to content

Commit e69de82

Browse files
author
Max Base
authored
evalAlgorithm()
1 parent a2cae43 commit e69de82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,7 @@ def toFormula(subscriptionsAll):
174174
result+='*'.join(subscription)+'+'
175175

176176
return result.rstrip('+')
177+
178+
def evalAlgorithm(newFormula, formula, binary):
179+
# We not need to use eval(), We can do this with an algorithm, It's not hard!
180+
return eval(newFormula)

0 commit comments

Comments
 (0)