How to Define Null Variable in Python
Posted on: February 25, 2021 by Ariessa Norramli
In this article, you will learn how to define a null variable in Python.
Null is used to refer to a variable or object that has no value.
Define Null Variable in Python
In order to define a null variable, you can use the None keyword.
a = None
print(a)
# => None
Note: The None keyword refers to a variable or object that is empty or has no value. It is Python’s way of defining null values.
Share on social media
//