Codewars Multiply Solution

in #codewars4 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