Why Lists? There are many data types in python and each of them has a unique trait. Like dictionaries, specialized in storing specific data under...
Why pack/unpack? args and *args are used A LOT in functions. Not only packing but unpacking certain data types in functions and using them is really...
Import from collections import namedtuple Declarations Point1 = namedtuple('Point', ['x', 'y']) Point2 = namedtuple('Point', 'x, y') Point3 =...
What are static methods? Static Methods are methods that are not limited to a class, but at the same time cannot directly access other class...
Tutorial for writing and using class functions and variables ยท Class Variables Class variables are variables that stay within the class. It's basically a...
Please refer to my previous article about classes if you don't have any prior knowledge about class init function or just classes in general. Sample...