Functions

3 / 5

Functions can return values using the return statement. For example:

def add(a, b):
    return a + b

This allows functions to compute values that can be used whenever the function is called.

result = add(3, 5)

The variable result will now have value 8.

Return values

Create a function called minimum that takes two parameters (numbers) and returns the lowest.

Congratulations!

You passed the !

Welcome!

Would you like a guided tour on how to use Vibewise?

Your email has been verified!