Python Forum
Python Forum
>
Python Coding
>
General Coding Help
> What's wrong?
Full Version:
What's wrong?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Dragon7585
Mar-31-2018, 03:01 AM
def multiply(a, b):
a * b
what's wrong?
def multiply(a, b): a * b
wavic
Mar-31-2018, 03:16 AM
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.
Python Forum
>
Python Coding
>
General Coding Help
> What's wrong?