Quantcast
Channel: Code Theory
Browsing latest articles
Browse All 374 View Live
↧

How to create a dictionary in Python and make use of it

There are many builtin objects offered by the Python computer programming language which the Python coder can make use of while writing their Python based applications. Through this simple and short...

View Article


How to get the current working directory with Python

One can easily find out the current working directory by making use of the Python computer programming language, since it comes with all the utilities required to interact with the functionalities of...

View Article


How to check if a Python string starts with a specific character

Been writing for some time a side project in the Python computer programming language, there was a case when I had to check if a string object started with a specific character or not. Then based on...

View Article

How to print the elements of a list object in Python

The Python list object is very useful to the coder, especially when they have to store data and keep track of it in their projects. Not only can the coder make use of the list object to store data in...

View Article

How to pass *args in a Python function

Functions are very useful in the Python computer programming language as they help the coder to group utilities together with the main purpose of accomplishing a specific goal. Not only this, but the...

View Article


How to execute commands of the unix based operating system in Python

Every operating system I am aware of comes with a command line utility through which the wise computer geek can execute commands and interact with the functionalities provided by it. Based on my...

View Article

How to find your Python version the geek way

As a computer geek, I like to experiment with different command line utilities with the main purpose of finding new ways to automate daily tasks in my own operating system. Python is one of my favorite...

View Article

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...

View Article


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...

View Article


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...

View Article
Browsing latest articles
Browse All 374 View Live