The code doesn't execute properly try to figure out why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

The code doesn't execute properly try to figure out why?

def multiply (a, b) : a * b

7th Jan 2018, 8:13 AM
Adlion🤘
Adlion🤘 - avatar
4 Answers
+ 11
Give a link to the code. Otherwise, the code you have displayed has no error. Maybe you need to print or return the output as well.
7th Jan 2018, 8:17 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
7th Jan 2018, 8:28 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
okay thanks a lot
7th Jan 2018, 8:24 AM
Adlion🤘
Adlion🤘 - avatar
+ 1
the only thing that could not work here is that you have to use propre indentation for the def block. Also you may have forgot the return key word to get the result of your multiply
7th Jan 2018, 8:31 AM
Vincent
Vincent - avatar