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 9845f9e commit 115dd38Copy full SHA for 115dd38
addition parser.py
@@ -0,0 +1,11 @@
1
+calc = input("enter calculation: ")
2
+calc = calc.split("+")
3
+l = len(calc)
4
+print(calc, l)
5
+c = 0
6
+answer = 0
7
+while(c < l):
8
+ answer = answer + int(calc[c])
9
+ c = c + 1
10
+
11
+print(answer)
0 commit comments