Codewars Multiply Solution

in codewars •  3 years ago 

Codewars Multiply

Kata level: 8-kyu

Details

This code does not execute properly. Try to figure out why

def multiply(a, b):
  a * b

The solution:

The code proposed above makes the function not return something, for this, the reserved word return must be placed to indicate that it will return the multiplication of a and b

def multiply(a, b):
  return a * b

The Github Repo with the solution
The Github Repo with anothers Katas
My Github Account

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!