Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (47.6k points)

How do I refer to the null object in Python?

1 Answer

0 votes
by (106k points)
edited by

In Python, the 'null' object is the singleton None.

So the best way to check things for "Noneness" is to use the identity operator, ‘is’ see the code example below:-

if abc is None: 

To know more about this you can have a look at the following video tutorial:-


 

Related questions

0 votes
1 answer
+3 votes
2 answers
asked May 28, 2019 in Python by Ritik (3.5k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...