The Python computer programming language is so rich in features that it offers many ways to accomplish a specific task, but based on my personal experience with it, only a few ways are being used and accepted by those who get paid to write professional code daily. Not that it is totally wrong to write the code in your own way, but it is highly recommended to stay updated with the best practices which very skilled computer programmers make use of.
Continue reading “How to properly read and write a text file with Python”
Five ffmpeg commands every video geek should know about
FFmpeg is a leading multimedia framework which offers command line utilities to deal with video, audio and image files. Having some experience with FFmpeg, I can truly say that it is a great framework which can be utilized by the heavy computer geek to process their multimedia files. Not only is the FFMpeg multimedia framework free of charge, but it is also open source, which means that those who have some coding experience in the C programming language can study its components and also customize them based on their specific needs. Continue reading “Five ffmpeg commands every video geek should know about”
How to simply handle errors when importing modules in Python
Based on my personal experience with the Python computer programming language, the builtin import statement is being used to make use of different modules part of the Python technology.
For example, when a Python coder needs the functionalities included in the os builtin module, they have to import it by making use of the code which is shown below. Continue reading “How to simply handle errors when importing modules in Python”
How to find the email address from a Python string by using a custom regular expression
Regular expressions are very useful to the Python coder, especially if they have to deal with a lot of output in the form of text. Through this tutorial, you will learn how to find an email address from a Python long string object by making use of the regular expressions. Continue reading “How to find the email address from a Python string by using a custom regular expression”
How to find a pattern with re.search in a Python string
Regular expressions are very useful to the Python geek, especially when they have to deal with a lot of data which comes in the form of text. Being very rich in features, the Python computer programming language comes with a builtin module which offers the functionalities and utilities to construct regular expressions based on the coder’s needs. Continue reading “How to find a pattern with re.search in a Python string”
How to pass **kwargs inside a Python function
In one of the previous tutorials about the Python computer programming language, we learned how to make use of the *args syntax to pass arguments inside a function. Through this article, you are going to learn how to make use of the **kwargs Python syntax to automatically pass keyword based arguments inside a function.
Continue reading “How to pass **kwargs inside a Python function”
How to override a method in a Python class
The class utility offered by the Python computer programming language, is a very important tool to the Python coder as it offers a way to develop custom extension classes which inherit attributes from a base one. By using the class utility offered by the Python computer programming language, the developer can easily get the most out of the object oriented programming concept. Continue reading “How to override a method in a Python class”