Functional Programming with Python

Wrap your code in functions so you stop writing the same thing twice. Parameters, return values, and default arguments.

Articles

1

Functions and Sub Programs in Python

A function is a block of code used to solve a specific problem, and functions are the key to building large programs in Python.

2

The Return Statement in Python

The return statement lets you send a value a function has already processed back to the caller.

3

The Pass Statement in Python

The pass statement in Python is a special statement you can only use inside a compound statement.

4

Default Argument and Keyword Argument in Python

A default argument is a function argument with an initial value, which lets you make arguments optional.

For developers who learn by struggling

© 2026 Inva.dev.