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

Coin Marketplace

STEEM 0.13
TRX 0.24
JST 0.030
BTC 83853.39
ETH 1565.99
USDT 1.00
SBD 0.80