#17: What is PEP?
I used the abbreviation PEP in a few posts without every explaining what this is. It is now time for a closer look at the development process of the Python programming language.
I used the abbreviation PEP in a few posts without every explaining what this is. It is now time for a closer look at the development process of the Python programming language.
When you want to use Python for little maintenance tasks on your computer, you will need to work with files. Python offers you a range of built-in functions to do that and this post covers the most common ones. However, this post does not cover working with binary files. You most likely will need a specific library to work with them and the documentation of that library can explain the details much better than I can.
With comments in the code we can record our thoughts and considerations that led to our implementation. While this is a great help for developers that need to change the code, it is often not helpful to those who just want to use it - they are drown in detail and miss the big picture. What they need is documentation and luckily for us, Python has a great built-in feature called docstring to solve exactly that problem.
Pluralsight offers many great courses on Python. Even better, they currently run the #FREEAPRIL campaign in which you can watch all their videos in the month of April for free. To give you a head start, I collected in this post 5 courses I can recommend for learning Python.
While we should try to make our code as understandable as possible, sometimes we need to add comments. In this post I show you your options to add a comment to your Python code.
When you start learning a new programming language, you will first fight a lot with the syntax. Before you even can run your program you already get an error that you need to fix. After a while those syntax errors get less and less, and you can focus on creating a working application.
You quickly realise that valid Python syntax is not enough, your code must be able to handle wrong user input, missing resources or network errors. You now entered the endless challenges of creating a robust application and exceptions (and their handling) are an important part of it.
After 10 posts about learning Python it is time for a little bit of fun. You can find the other more serious parts of this series here.
Last week I started with classes and the basic things you need to know. In this post I explain duck typing and inheritance.
It took me a few weeks to reach classes and all the things I explained so far worked without them. This is a speciality of Python, then most other object-oriented languages use classes as the fundamental organisational unit for code.
I got a lot of topics covered over the last weeks. To put that to use, we need to look at ways to organise our code. Therefore, I use this post to explain modules and how they can help us to make our code maintainable.