We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c8e8e commit fac68c9Copy full SHA for fac68c9
1 file changed
Python/solve-the-equation.py
@@ -32,8 +32,7 @@ def solveEquation(self, equation):
32
:type equation: str
33
:rtype: str
34
"""
35
- a, b = 0, 0
36
- side = 1
+ a, b, side = 0, 0, 1
37
for eq, sign, num, isx in re.findall('(=)|([-+]?)(\d*)(x?)', equation):
38
if eq:
39
side = -1
0 commit comments