Strings are among the most commonly used data types in Python, and there might be times when you want to (or have to) work with strings containing or entirely made up of characters outside of the standard ASCII set (e.g. characters with accents or other markings). Python 2.x provides a data type called a Unicode Full Article…
A comprehensive guide that takes you from the basic to advanced concepts in Python.
Lists and Tuples
Two of the most commonly used built-in data types in Python are the list and the tuple. Lists and tuples are part of the group of sequence data types—in other words, lists and tuples store one or more objects or values in a specific order. The objects stored in a list or tuple can be Full Article…
Dictionaries
Among the built-in Python data types is a very versatile type called a dictionary. Dictionaries are similar to lists and tuples because they act as storage units for other objects or variables you’ve created. Dictionaries are different from lists and tuples because the group of objects they hold aren’t in any particular order, but rather Full Article…
Working with Threads in Python
What are threads? Simply put, try to imagine them as running several programs concurrently, in a single process. When you create one or more threads in your program, they get executed simultaneously, independent of each other, and most importantly, they can share information among them without any extra difficulty. These features make threads lightweight and Full Article…
Working With Packages in Python
When you’ve got a large number of classes, you’ll want to organize them in packages. When the number of modules (simply stated, a module might be just a file containing some classes) in any project grows significantly, it is wiser to organize them in Packages – that is, placing functionally similar modules/classes in the same directory. Working with packages Full Article…
The Object Oriented Paradigm
Object orientation is a central concept in Python, as well as many other languages. Understanding the concept, and applying it well, will enable you to build much more elegant and manageable software. Everything’s An Object You’ll often hear it said that, in Python, everything’s an object. It’s pretty much true, with a few exceptions. An Full Article…