+ 1
Help I can't do the Simple Calculator task...
I'm new to this
3 Answers
+ 2
Thank you but because it's one of the task after the first module
0
a, b, c = int(input()), int(input()), input()
a, b = int(a), int(b)
if c == '+':
print(a + b)
elif c == '-':
print(a - b)
elif c == '*':
print(a * b)
elif c == '/':
print(a / b)
else:
print('unknown value')