What is None in Python?

None is a reserved keyword used in Python for null objects.

It is neither a null value nor a null pointer. It is an actual object in Python.

But there is only one instance of None in a Python environment. We can use None as a default argument in a function.

During comparison we have to use โ€œisโ€ operator instead of โ€œ==โ€ for None.


Posted

in

Tags:

Comments

Leave a Reply