0
Can i type in + - * / to do math equations?
I'm trying to make a calculator, and being able to use + - * / as a variable would really help me. For example, i type in 2 integers and then type in + and it would assign + to a variable so i can use it for math equations.
1 Odpowiedź
0
pattern:
a = int(input())
b = int(input())
operator = input()
if operator = '+':
print(a+b)
and so on.