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.

20th Dec 2019, 4:54 PM
Alan is not my real name
Alan is not my real name - avatar
1 ответ
0
pattern: a = int(input()) b = int(input()) operator = input() if operator = '+': print(a+b) and so on.
20th Dec 2019, 5:48 PM
HonFu
HonFu - avatar