All posts by Tuna Peyo

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

What are functions?

Aug 10,97

Functions in Python are named blocks of code that are used in large programs to separate code into manageable chunks. …

Read More
Geek University 2022