Core: learn it Step 6 of 16 on the Python Developer roadmap
Functions
A function is a named block of code you can run again and again. Splitting a program into small functions makes it easier to read, test and fix. Aim for functions that each do one clear job.