If you input 4 * 5 can you take that input and run it as a operation? [Python 3]
a = input(‘Calculator: ‘)
a = int(a)
print(a)
Sorry I’m not a professional. I learn Python as a new skill so that I don’t waste my holidays. And I’m 12...
no it will not work, because int(a) expect an int and * is not a number.
use a function instead like
def mult(x, y) :
return x * y
get two inputs a and b
a = mult(a, b)