For any program to be useful, you need to be able to take data in. There are many ways of doing that, and you need to decide which way works best for you in a given situation. Data can be obtained...
Get Air Quality Data Globally in Python 3
There are some interesting data on our environment such as air quality factors that can be available from public datasets. This can be useful to determine if there are health risks in your local...
How To Create Getter Setter Class Properties in Python 3
We know everyone hates setting property fields in Python classes, here’s how you can create getter setter properties in python classes to do it for you. In this article, you’ll see how to create...
How to Use argv Command Line Parameters in Python
The command line is a big part of using and understanding programming in Python. In this article, we will cover the command line parameters argv and argc - their origin and how you can use them....
Remove items from a list while iterating in python 3
Managing lists is a very common task in any program activity. Within python it's fairly straightforward to do. One area that come up is to remove items from a list while iterating in Python...
Complete Guide To List Array Slice in Python 3
Managing lists (or arrays as known in other languages) in python is a common task where you often need to take a section from the list - e.g. a slice of the list. This is where slice() can be used...
How to remove files older than 7 days using python script
In this tutorial, we are going to learn about how to automate the process of removing files in a specific folder using python. We are going to use different packages but mainly our programming logic...
How To Detect If A Date Is A Public Holiday In Python 3
Determining the current date is a public holiday can be tricky when holidays change and it of course changes from country to country. From system time of servers & machines running to timestamps...
How To Print String in Color In Python 3
Python offers an option to print strings in color so that information in the console can be much easier to comprehend. This can be incredible useful when reading long log files, seeing console...
One Line If Elif Else Statements in Python 3
If statements are present in all our code and can in fact be written efficiently in a single line. A condition-less code will be monotonous and one couldn't do much with such a linear flow. If...