Python

Variable scopes

Aug 10,97

A variable scope is simply the part of a program where a variable is accessible. It depends on the place …

Read More

Flexible number of arguments

Aug 10,97

It is possible to create a function that will accept a flexible amount of arguments. This is useful in scenario …

Read More

Default values for parameters

Aug 10,97

It is possible to define a default value for function parameters. This is useful in scenarios when a function is …

Read More

Keyword arguments in functions

Aug 10,97

Keyword arguments are name-value pairs specified in the function call. With keyword arguments, you don’t have to worry about the …

Read More

Positional arguments

Aug 10,97

A function definition can contain more than a single parameter. The easiest way to pass multiple arguments to a function …

Read More

Return statement

Aug 10,97

Often times you will want to write a function that process some data and then returns a value. For example, …

Read More
Geek University 2022