Functions With Parameters

This lesson introduces parameterized functions.

In the previous example, a function was defined with nothing inside the round brackets. But certain functions require some information on which they should operate. For instance, a function that is expected to compute the square of a number needs to be provided with the number itself. That’s what a parameter is.

What Are the Parameters?

Variable or values that go in the function definition are parameters.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy