You're on the right track. It is important to know that functions should return a value, so your code should look like this:
def multiply(a, b):
return a * b
For something to happen once you run your code, afterward, you must call the function within a print statement and pass it some parameters. For example,
print(multiply(2,2))
Should output:
4
If you want to know more about the Data Science then do check out the following Data Science which will help you in understanding Data Science from scratch