Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Arguments Overview | Arguments in Function
Intermediate Python: Arguments, Scopes and Decorators

Arguments OverviewArguments Overview

First of all, let’s learn what positional, keyword, and optional arguments are.

The example above uses positional arguments. If you pass a different number of arguments, an error will occur. To call the function func(1, 2, 3), you just pass the arguments by their positions. The positional argument is a mandatory one.

Also, you can pass arguments using names. And there are keyword arguments. In this case, you do not need to follow the order of the arguments.

After giving a default value to the argument, it becomes an optional one. So, you may pass it, and if not, the function will use the default value.

Chose right names to correspond arguments.

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 2. Capítulo 1
course content

Contenido del Curso

Intermediate Python: Arguments, Scopes and Decorators

Arguments OverviewArguments Overview

First of all, let’s learn what positional, keyword, and optional arguments are.

The example above uses positional arguments. If you pass a different number of arguments, an error will occur. To call the function func(1, 2, 3), you just pass the arguments by their positions. The positional argument is a mandatory one.

Also, you can pass arguments using names. And there are keyword arguments. In this case, you do not need to follow the order of the arguments.

After giving a default value to the argument, it becomes an optional one. So, you may pass it, and if not, the function will use the default value.

Chose right names to correspond arguments.

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 2. Capítulo 1
some-alt