0
help i dont understand
def multiply(a, b): a * b
3 Respostas
+ 2
If it is a function, it needs to return something. Otherwise, running it is kind of useless.
So you probably need to say:
def multiply(a, b):
return a * b
+ 1
def multiply(a, b) #create function with parameters a and b
return a * b #return multiply a on b
multiply(2, 5) #you call function what will multiply 2 on 5 and return result
0
return or print a*b value and also indent your code in python.