Are you confused by fancy programming terms like functions, classes, methods, libraries, and modules? Do you struggle with the scope of variables? Whether you're a self-taught programmer or a formally trained code monkey, the modularity of code can be confusing. But classes and libraries encourage modular code, and modular code can mean building up a collection of multipurpose code blocks that you can use across many projects to reduce your coding workload. In other words, if you follow along with this article's study of Python functions, you'll find ways to work smarter, and working smarter means working less.
This is a well written easy to follow guide and a newer post was just released which covers object-orientated programming in Python. If you need to learn the basics still you can start at the earlier posts in the series.
Minimize your coding workload by using Python functions for repeating tasks.