News

This post explains how to use classes in Python. Including: how to use static and private methods, constructors, and more!
You might be tempted to use a class because you’re constantly calling a function with the same arguments. In most cases, it’s a better idea to use functools.partial () instead.
Python 3.7's dataclasses reduce repetition in your class definitions. Newcomers to Python often are surprised by how little code is required to accomplish quite a bit. Between powerful built-in data ...
Everything in Python is an object, or so the saying goes. If you want to create your own custom objects, with their own properties and methods, you use Python’s class object to make that happen ...
Learn how to use Python’s optional type-hinting syntax to create cleaner and more useful code.
In this video, we will be looking at 10 Python functions that will simplify your life. These can save you a ton of time and a lot of headache, and they get more and more interesting as we go ...