What is wrong with this equation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is wrong with this equation

def mutiply(a, b): a * b

22nd Jun 2019, 3:36 PM
Oketunbi Olatunji
Oketunbi Olatunji - avatar
2 Answers
+ 9
You aren‘t explicitly returning something, Oketunbi Olatunji . Try the following: ———————————— def multiply(a,b): return a*b ———————————— Hope this helps 😊
22nd Jun 2019, 3:50 PM
aceisace
aceisace - avatar
+ 1
the function does not specify what to return.....second line must be return a*b
22nd Jun 2019, 5:36 PM
Sachin Motwani
Sachin Motwani - avatar