Passing Arguments to a Function

We'll cover the following...

Now we’re ready to learn about how to create a function that can accept arguments and also learn how to pass said arguments to the function. Let’s create a simple function that can add two numbers together:

Press + to interact
def add(a, b):
return a + b
print(add(1, 2)) # 3

All functions return something. ...