New course! Every coder should learn Generative AI!
Try a free lesson1 Answer
+ 1
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)