Python Forum

Full Version: What's wrong?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
def multiply(a, b):
a * b
Angry Doh Angry Doh Angry Doh Angry Doh Angry Doh

what's wrong?

def multiply(a, b):
  a * b
The function is not returning the result

def multiply(a, b):
    return a * b
If you do not specify the return value it will return None.