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)