16 November 2021

None in Python

Python None vs False

In Python, None is an object implemented by the NoneType class. In Python, None represents an absence of a value in a variable. In Python, None is what would be a null in other commonly used programming languages. Unlike the null in the other languages, Python’s None has nothing to do with values 0 or […]

Python None vs False Read More »

@symbol in Python

Symbol @ in Python

In Python, the “at symbol” (@) is used in two different contexts: Decorators. Matrix multiplication. Let’s take a more in-depth look at both of these. Decorators in Python The main use case of the symbol @ in Python is decorators. In Python, a decorator is a function that extends the functionality of an existing function or class.

Symbol @ in Python Read More »