This content originally appeared on CodeSource.io and was authored 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.
The post How to Define Null Variable in Python appeared first on CodeSource.io.
This content originally appeared on CodeSource.io and was authored by Ariessa Norramli
Ariessa Norramli | Sciencx (2021-02-25T10:40:36+00:00) How to Define Null Variable in Python. Retrieved from https://www.scien.cx/2021/02/25/how-to-define-null-variable-in-python/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.