Get modular with Python functions - Minimize your coding workload by using Python functions for repeating tasks

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.

See #^https://opensource.com/article/19/7/get-modular-python-functions

#python #programming
#^Get modular with Python functions

Image/photo

Minimize your coding workload by using Python functions for repeating tasks.



source https://gadgeteer.co.za/node/3343

Comments