11Python Programming

Functions

Easy10MIN

What are functions?

Functions play an important role in Python programming. With a function, you can name a logical entity that performs a specific action. Arguments can be passed to a function to control its execution. The code inside a function is executed only when the function is called.

1 / 7
Hakatemia Pro

Learn to hack — start here

Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.