Browse Source

Fix incrementation.

Moul 3 years ago
parent
commit
41191a5917
1 changed files with 1 additions and 1 deletions
  1. 1 1
      computorv1.py

+ 1 - 1
computorv1.py

@@ -43,7 +43,7 @@ def parse (str):
 		if cond_X0(str, i) and str[i + 1] == " " and str[i + 2] != "*":
 			a = str[:i + 1]; b = str[i + 1:]; s = "";
 			seq = a, " * X^0", b; str = s.join(seq)
-		i = i + 1
+		i += 1
 	if cond_X0(str, len(str) - 1):
 		seq = str, " * X^0"; str = s.join(seq)
 	if str[0] == "X": seq  = "1 * ", str; str = s.join(seq)