Introduction to the Python os module in a practical way, first part

The operating system is the main reason why your computer hardware is being powered. Without it, one would not be able to write and generate files in Microsoft Office, play games and navigate the internet with the help of a web browser.

Although a very complex software, the operating system functionalities can be easily accessed and used with the help of builtin modules offered by the Python computer programming language, such as the os module. Having experienced with the Python builtin os module, I have come to the conclusion that it deserves some attention through some specific articles about it, because it provides many useful utilities which the Python coder can utilize in their projects that deal with the operating system under the hood. Continue reading “Introduction to the Python os module in a practical way, first part”

Three Python web development frameworks you should care about as a beginner

The Python computer programming language is a very good utility which is being widely used in different fields where computer science is applied such as robotics, artificial intelligence, data science and software development. According to my personal experience with Python, there are many web developers from all over the world which make use of it and its web application development frameworks to write their real world projects. Having attended a Python conference in Europe back in 2013, I met a lot of web developers who make use of Python based frameworks such as Django, Flask, Plone, Pyramid and Web2py to write applications for the web. Continue reading “Three Python web development frameworks you should care about as a beginner”

How to use the Python builtin function list() to generate lists

There are many builtin functions which come by default with Python, utilities that the coder can use to accomplish many different tasks in their real world projects. Although most of them are being explained in details in the Python’s official documentation, the beginner finds it really hard to truly understand most of them. Taking this fact in consideration, I am going to share some information on how one can make use of the Python builtin function called list() to generate list objects.
Continue reading “How to use the Python builtin function list() to generate lists”

Python skills you should keep practicing to become a good coder, first part

A good coder has not achieved all their computer programming skills overnight, nothing happens without hard work and dedication. Having some experience with the Python computer programming language, it took me some years to truly realize that software development is not about just reading syntax or computer programming books, but about practicing and building stuff that works.

Although there are many skilled coders out there, whom one thinks that they can not match in terms of skills, I do believe that patience is a key factor in becoming a top notch computer programmer.

For one to master any craft, it is necessarily for them to practice it everyday, without stopping. Being smart is always a good thing, especially when it comes to writing and maintaining computer code, but consistency is the king if one wants to move their computer programming skills to the next level. Continue reading “Python skills you should keep practicing to become a good coder, first part”

How to trace your Python program with pdb

There are many useful Python packages to the Python coder out there. One of them is pdb, a package which can help to trace the state of a program in the Python computer programming language with the main purpose of debugging the code of an application or a project.

The purpose of this very short tutorial is to give the beginner a simple introduction to the builtin python debugger, through an example.

Before going any further with the article, make sure to write the following Python function in a new file, exactly like shown below.
Continue reading “How to trace your Python program with pdb”

A simple example of the try/except Python statements

There is so much confusion being created on the Internet geek communities when it comes to the try/except statements in the Python computer programming language, especially among the complete beginners who have no idea at all about error handling practices.

Having struggled myself with the try/except statements during the beginning of my Python coding journey, I decided to share a simple example which can be a benefit to a lot of people who are interested in learning the Python computer programming language. The sample code being shared through this tutorial, has not practical usage in real world scenarios, but for sure it is a great source to use when stuck in a try/except piece of Python code. Continue reading “A simple example of the try/except Python statements”

How to remove an item with the del statement in Python

When the Python coders work in the interactive console, or when they write scripts to be executed later in time, most of the time they make use of the del statement with the main purpose of removing an object. Beginners in the coding journey, need clear instructions so they can truly understand what a specific builtin utility achieves by being used in the Python computer programming language.

During this very short tutorial, codetheory will instruct the reader on the Python statement called del. According to the official documentation, the Python del statement can be used to remove entire variables. The syntax for it is being shown below. Continue reading “How to remove an item with the del statement in Python”