{"id":2335,"date":"2019-12-29T10:15:09","date_gmt":"2019-12-29T04:45:09","guid":{"rendered":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/?p=2335"},"modified":"2023-12-30T15:46:05","modified_gmt":"2023-12-30T10:16:05","slug":"python-null","status":"publish","type":"post","link":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/","title":{"rendered":"Python Null | What is Null in Python | None in Python"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-null\/#What_is_Null_in_Python\" title=\"What is Null in Python?\">What is Null in Python?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Syntax\" title=\"Syntax\">Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Null_Object_in_Python\" title=\"Null Object in Python\">Null Object in Python<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Null_in_Java\" title=\"Null in Java\">Null in Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Null_in_PHP\" title=\"Null in PHP\">Null in PHP<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Checking_if_a_variable_is_None_Null_in_Python_using_is_operator\" title=\"Checking if a variable is None (Null) in Python using is operator: \">Checking if a variable is None (Null) in Python using is operator: <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Python_Null_Using_the_operator\" title=\"Python Null Using the == operator\">Python Null Using the == operator<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-null\/#None_Null_value_in_a_List_example\" title=\"None (Null) value in a List example \">None (Null) value in a List example <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Using_NoneNull_for_default_args_in_Python\" title=\"Using None(Null) for default args in Python\">Using None(Null) for default args in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Check_the_type_of_None_Null_object\" title=\"Check the type of None (Null) object: \">Check the type of None (Null) object: <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Check_if_None_is_equal_to_None\" title=\"Check if None is equal to None\">Check if None is equal to None<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Check_if_None_is_equal_to_an_empty_string\" title=\"Check if None is equal to an empty string \">Check if None is equal to an empty string <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Output\" title=\"Output\">Output<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Assigning_a_NULL_value_to_a_pointer_in_python\" title=\"Assigning a NULL value to a pointer in python\">Assigning a NULL value to a pointer in python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.pythonpool.com\/python-null\/#None_cannot_be_overwritten\" title=\"None cannot be overwritten\">None cannot be overwritten<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Difference_between_Null_and_empty_string_in_Python\" title=\"Difference between Null and empty string in Python \">Difference between Null and empty string in Python <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Image_Explains_it_all\" title=\"Image Explains it all\">Image Explains it all<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.pythonpool.com\/python-null\/#Trending_Python_Articles\" title=\"Trending Python Articles\">Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-what-is-null-in-python\"><span class=\"ez-toc-section\" id=\"What_is_Null_in_Python\"><\/span>What is Null in Python?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In <strong>Python<\/strong>, there is no <strong>null<\/strong> keyword or object available.  Instead, you may use the \u2018<strong>None<\/strong>\u2019 keyword, which is an object. <\/p>\n\n\n\n<p>We can assign\u00a0<code>None<\/code>\u00a0to any variable, but you can not create other <code>NoneType<\/code> objects. <\/p>\n\n\n\n<p><strong>Note:<\/strong><\/p>\n\n\n\n<ul>\n<li>We can define None to any variable or object.<\/li>\n\n\n\n<li><strong>None&nbsp;<\/strong>is not equal to&nbsp;<strong>0<\/strong><\/li>\n\n\n\n<li>In addition, <strong>None&nbsp;<\/strong>is not equal to&nbsp;<strong>FALSE<\/strong><\/li>\n\n\n\n<li><strong>None&nbsp;<\/strong>is not equal to&nbsp;an <strong>empty string<\/strong><\/li>\n\n\n\n<li><strong>None&nbsp;<\/strong>is only equal to<strong>&nbsp;None<\/strong><\/li>\n<\/ul>\n\n\n\n<p> <strong>Note<\/strong>: All variables that are assigned&nbsp;<code>None<\/code>&nbsp;point to the&nbsp;<em>same<\/em>&nbsp;object. New instances of&nbsp;<code>None<\/code>&nbsp;are not created. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-syntax\"><span class=\"ez-toc-section\" id=\"Syntax\"><\/span>Syntax<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The syntax of&nbsp;<code>None<\/code>&nbsp;statement is:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nNone\n<\/pre><\/div>\n\n\n<p>This is how you may assign the \u2018none\u2019 to a variable in Python:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>none = None<\/code><\/pre>\n\n\n\n<p><strong>We can check None by keyword&nbsp;\u201cis\u201d&nbsp;and syntax&nbsp;\u201c==\u201d<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-null-object-in-python\"><span class=\"ez-toc-section\" id=\"Null_Object_in_Python\"><\/span>Null Object in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In<strong> Python<\/strong>, the &#8216;<strong>null<\/strong>&#8216; object is the singleton&nbsp;<code>None<\/code>.<\/p>\n\n\n\n<p>The best way to check things for &#8220;Noneness&#8221; is to use the identity operator,&nbsp;<code>is<\/code>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nif foo is None:\n    ...\n<\/pre><\/div>\n\n\n<p> <em>Note: The first letter in \u2018None\u2019 keyword is the capital&nbsp;<strong>N.&nbsp;<\/strong>The small \u2018n\u2019 will produce an error.<\/em> <\/p>\n\n\n\n<p>In other programming languages, for example, this is how you may create a null variable in PHP and Java.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-null-in-java\"><span class=\"ez-toc-section\" id=\"Null_in_Java\"><\/span>Null in Java<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; gutter: false; title: ; notranslate\" title=\"\">\nmyVariable = null;\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-null-in-php\"><span class=\"ez-toc-section\" id=\"Null_in_PHP\"><\/span><strong>Null in PHP<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\n$myVariable = NULL;\n<\/pre><\/div>\n\n\n<p>If you need to evaluate a variable in the if condition, you may check this as follows in Java:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\nif(myVariable == null) {\n  System.out.println(\u201dSome output\u201d);\n}\n<\/pre><\/div>\n\n\n<p>How to use the \u2018<strong>None<\/strong>\u2019 in Python. I will use it in the if statement and a few compound data types.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-checking-if-a-variable-is-none-null-in-python-using-is-operator\"><span class=\"ez-toc-section\" id=\"Checking_if_a_variable_is_None_Null_in_Python_using_is_operator\"><\/span>Checking if a variable is None (Null) in Python using is operator: <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# Declaring a None variable\nvar = None\n\nif var is None: # Checking if the variable is None\n  print(&quot;None&quot;)\nelse:\n  print(&quot;Not None&quot;)\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-python-null-using-the-operator\"><span class=\"ez-toc-section\" id=\"Python_Null_Using_the_operator\"><\/span><strong>Python Null Using the == operator<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p> Rather than using the identity operator in the if statement, you may also use the comparison operators like ==, != etc. for evaluating a \u2018none\u2019 value. See the example with the&nbsp;code below where the same code is used as in the above example except the comparison operator: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#A demo of none variable with == operator\n\nex_none = None\n\nif ex_none == None:\n    print('The value of the variable is none')\nelse:\n    print('Its a not null variable')\n<\/pre><\/div>\n\n\n<p><strong>The output of the above example is:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The value of the variable is none<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-none-null-value-in-a-list-example\"><span class=\"ez-toc-section\" id=\"None_Null_value_in_a_List_example\"><\/span><strong>None (Null) value in a List example<\/strong> <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Similarly, you may use the <strong>Null<\/strong> value in the compound data type List. Just use the&nbsp;<em>None<\/em>&nbsp;keyword as in case of sets.<\/p>\n\n\n\n<p>See this example where I have created a list and the third item in the list is None keyword:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# An example of a List with None\n\nstr_list_None = &#x5B;'List','with', None, 'Value']\n\nfor str in str_list_None:\n    print (&quot;The current list item:&quot;,str)\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-using-none-null-for-default-args-in-python\"><span class=\"ez-toc-section\" id=\"Using_NoneNull_for_default_args_in_Python\"><\/span>Using None(Null) for default args in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Using anything but&nbsp;<code>None<\/code>&nbsp;for default, arguments make objects and functions less extensible. <\/p>\n\n\n\n<p>We&#8217;re going to use\u00a0<code>None<\/code>\u00a0for our default argument, subbing in our default value when none is provided:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nDEFAULT_FOOD = 'catfood'\n\nclass Cat:\n    def eat(self, food=None):\n        if food is None:\n            food = DEFAULT_FOOD\n        return food\n\ncat = Cat()\ncat.eat()  # catfood\ncat.eat('tuna')  # tuna\n<\/pre><\/div>\n\n\n<p>Our class still behaves the same but is easier to extend. Look how we no longer need to worry about the default value constant in our&nbsp;<code>Tabby<\/code>&nbsp;to maintain the same method signature:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-check-the-type-of-none-null-object\"><span class=\"ez-toc-section\" id=\"Check_the_type_of_None_Null_object\"><\/span>Check the type of None (Null) object: <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# Declaring a variable and initializing with None type\ntypeOfNone = type(None) \n\nprint(typeOfNone)\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-check-if-none-is-equal-to-none\"><span class=\"ez-toc-section\" id=\"Check_if_None_is_equal_to_None\"><\/span><strong>Check if None is equal to None<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# Python program to check None value\n\n# initialized a variable with None value\nmyval = None\n\nif None is None:\n    print('None is None')\nelse:\n    print('None is Not None')\n\nprint(None == None)\n<\/pre><\/div>\n\n\n<p> <strong>Output:<\/strong> <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nNone is None\nTrue\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-check-if-none-is-equal-to-an-empty-string\"><span class=\"ez-toc-section\" id=\"Check_if_None_is_equal_to_an_empty_string\"><\/span><strong>Check if None is equal to an empty string<\/strong> <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# Inilised a variable with None value\nmyval = ''\n\nif myval == None:\n    print('None is equal to empty string')\nelse:\n    print('None is Not Equal to empty string')\n\nprint(None == myval)\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-output\"><span class=\"ez-toc-section\" id=\"Output\"><\/span>Output<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nNone is Not Equal to empty string\nFalse\n<\/pre><\/div>\n\n\n<p>Also Read: <strong><em><a href=\"https:\/\/www.pythonpool.com\/learn-python-the-hard-way-pdf\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Learn Python the Hard Way Review (opens in a new tab)\">Learn Python the Hard Way Review<\/a><\/em><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-assigning-a-null-value-to-a-pointer-in-python\"><span class=\"ez-toc-section\" id=\"Assigning_a_NULL_value_to_a_pointer_in_python\"><\/span>Assigning a NULL value to a pointer in python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In <a aria-label=\"Python (opens in a new tab)\" href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python<\/a>, we use None instead of NULL. As all objects in Python are implemented via references, See the code below:-<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nclass Node:\u00a0\n\u00a0\u00a0def __init__(self):\u00a0\n\u00a0\u00a0\u00a0\u00a0self.val = 0\n\u00a0\u00a0\u00a0\u00a0self.right = None\n\u00a0\u00a0\u00a0\u00a0self.left = Non\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-none-cannot-be-overwritten\"><span class=\"ez-toc-section\" id=\"None_cannot_be_overwritten\"><\/span>None cannot be overwritten<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In a much older version of Python (before 2.4) it was possible to reassign&nbsp;<code>None<\/code>, but not anymore. Not even as a class attribute or in the confines of a function.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# In Python 2.7\n&gt;&gt;&gt; class SomeClass(object):\n...     def my_fnc(self):\n...             self.None = 'foo'\nSyntaxError: cannot assign to None\n&gt;&gt;&gt; def my_fnc():\n        None = 'foo'\nSyntaxError: cannot assign to None\n\n# In Python 3.5\n&gt;&gt;&gt; class SomeClass:\n...     def my_fnc(self):\n...             self.None = 'foo'\nSyntaxError: invalid syntax\n&gt;&gt;&gt; def my_fnc():\n        None = 'foo'\nSyntaxError: cannot assign to keyword\n<\/pre><\/div>\n\n\n<p>It&#8217;s, therefore, safe to assume that all None(<strong>Null<\/strong>)&nbsp;references are the same. There&#8217;s no &#8220;custom&#8221;&nbsp;<code>None<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-difference-between-null-and-empty-string-in-python\"><span class=\"ez-toc-section\" id=\"Difference_between_Null_and_empty_string_in_Python\"><\/span>Difference between Null and empty string in Python <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Python doesn\u2019t have a <strong>Null<\/strong> string at all.<\/p>\n\n\n\n<p>Python does have a <strong>None<\/strong> value but it isn\u2019t a string it is A None that can be applied to all variables &#8211; not just those which are originally defined as a string. In fact, Python doesn\u2019t care what a variable has been defined as previously &#8211; this is entirely valid code (although not a great idea):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ndata=23\ndata = &#x5B;23,24,25,26,27] # Now a list\ndate = \u2018Hello World\u2019 # Now a string\ndata = None\n<\/pre><\/div>\n\n\n<p>So to try to answer your question<\/p>\n\n\n\n<p>This is a string :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">data =\u2018Hello World\u2019<\/pre>\n\n\n\n<p>This is an Empty string :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">data =\u2018\u2019<\/pre>\n\n\n\n<p>And this is None<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">date = <strong>None<\/strong><\/pre>\n\n\n\n<p>A <strong>Null<\/strong> or empty string means that there is a string but its content is empty &#8211;&nbsp;<\/p>\n\n\n\n<p>len(\u2018 \u2019) ==0. For<strong> Python<\/strong>, the term \u2018Empty string\u2019 is preferred.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-image-explains-it-all\"><span class=\"ez-toc-section\" id=\"Image_Explains_it_all\"><\/span>Image Explains it all<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This image shows a clear difference between Non-Zero, 0, null and undefined.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"602\" height=\"452\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/main-qimg-aa3d577b44073ab39e9781a72f51c0a4-min.png\" alt=\"Difference between Null and None\" class=\"wp-image-2344\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/main-qimg-aa3d577b44073ab39e9781a72f51c0a4-min.png 602w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/main-qimg-aa3d577b44073ab39e9781a72f51c0a4-min-300x225.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>None has a distinctive status in <strong>Python<\/strong> language. It\u2019s a preferred baseline value because many algorithms treat it as exceptional.<\/p>\n\n\n\n<p>In such scenarios, it can be used as the flag to signal that the condition requires some special handling, such as setting the default value.<\/p>\n\n\n\n<p>If you didn\u2019t find what you were looking for, then do suggest us in the comments below. We will be more than happy to add that. <\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Python_Articles\"><\/span>Trending Python Articles<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>What is Null in Python? In Python, there is no null keyword or object available. Instead, you may use the \u2018None\u2019 keyword, which is an &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Python Null | What is Null in Python | None in Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-null\/#more-2335\" aria-label=\"More on Python Null | What is Null in Python | None in Python\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2341,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,15],"tags":[80,79,77,78,72,73,81,82,84,71,74,75,85,83,76],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v22.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Null | What is Null in Python | None in Python - Python Pool<\/title>\n<meta name=\"description\" content=\"In Python Programming there is nothing called Null. Instead of Python Null there is None which is similar to Null in other languages.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/python-null\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Null | What is Null in Python | None in Python\" \/>\n<meta property=\"og:description\" content=\"What is Null in Python? In Python, there is no null keyword or object available. Instead, you may use the \u2018None\u2019 keyword, which is an object. We can\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-null\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-29T04:45:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-30T10:16:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1017\" \/>\n\t<meta property=\"og:image:height\" content=\"614\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Python Pool\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Python Pool\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/\"},\"author\":{\"name\":\"Python Pool\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998\"},\"headline\":\"Python Null | What is Null in Python | None in Python\",\"datePublished\":\"2019-12-29T04:45:09+00:00\",\"dateModified\":\"2023-12-30T10:16:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/\"},\"wordCount\":786,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg\",\"keywords\":[\"how to assign null in python\",\"how to check if a value is null in python\",\"how to return null in python\",\"how to write null in python\",\"null in python\",\"null python\",\"python check for null\",\"python is null\",\"python none vs null\",\"python null\",\"python null value\",\"python return null\",\"python set variable to null\",\"return null python\",\"what is null in python\"],\"articleSection\":[\"Programs\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-null\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-null\/\",\"name\":\"Python Null | What is Null in Python | None in Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg\",\"datePublished\":\"2019-12-29T04:45:09+00:00\",\"dateModified\":\"2023-12-30T10:16:05+00:00\",\"description\":\"In Python Programming there is nothing called Null. Instead of Python Null there is None which is similar to Null in other languages.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-null\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg\",\"width\":1017,\"height\":614,\"caption\":\"Python Null\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-null\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Null | What is Null in Python | None in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998\",\"name\":\"Python Pool\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b170f9f39a7cad6ab2d2b1c4bc7b79f5?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b170f9f39a7cad6ab2d2b1c4bc7b79f5?s=96&d=wavatar&r=g\",\"caption\":\"Python Pool\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Null | What is Null in Python | None in Python - Python Pool","description":"In Python Programming there is nothing called Null. Instead of Python Null there is None which is similar to Null in other languages.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/","og_locale":"en_US","og_type":"article","og_title":"Python Null | What is Null in Python | None in Python","og_description":"What is Null in Python? In Python, there is no null keyword or object available. Instead, you may use the \u2018None\u2019 keyword, which is an object. We can","og_url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/","og_site_name":"Python Pool","article_published_time":"2019-12-29T04:45:09+00:00","article_modified_time":"2023-12-30T10:16:05+00:00","og_image":[{"width":1017,"height":614,"url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg","type":"image\/jpeg"}],"author":"Python Pool","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Python Pool","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#article","isPartOf":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/"},"author":{"name":"Python Pool","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998"},"headline":"Python Null | What is Null in Python | None in Python","datePublished":"2019-12-29T04:45:09+00:00","dateModified":"2023-12-30T10:16:05+00:00","mainEntityOfPage":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/"},"wordCount":786,"commentCount":2,"publisher":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#primaryimage"},"thumbnailUrl":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg","keywords":["how to assign null in python","how to check if a value is null in python","how to return null in python","how to write null in python","null in python","null python","python check for null","python is null","python none vs null","python null","python null value","python return null","python set variable to null","return null python","what is null in python"],"articleSection":["Programs","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/","url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/","name":"Python Null | What is Null in Python | None in Python - Python Pool","isPartOf":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#primaryimage"},"image":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#primaryimage"},"thumbnailUrl":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg","datePublished":"2019-12-29T04:45:09+00:00","dateModified":"2023-12-30T10:16:05+00:00","description":"In Python Programming there is nothing called Null. Instead of Python Null there is None which is similar to Null in other languages.","breadcrumb":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#primaryimage","url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg","contentUrl":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2019\/12\/Capture-min.jpg","width":1017,"height":614,"caption":"Python Null"},{"@type":"BreadcrumbList","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/python-null\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Python Null | What is Null in Python | None in Python"}]},{"@type":"WebSite","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#website","url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/twitter.com\/pythonpool","https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998","name":"Python Pool","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/secure.gravatar.com\/avatar\/b170f9f39a7cad6ab2d2b1c4bc7b79f5?s=96&d=wavatar&r=g","contentUrl":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/secure.gravatar.com\/avatar\/b170f9f39a7cad6ab2d2b1c4bc7b79f5?s=96&d=wavatar&r=g","caption":"Python Pool"}}]}},"_links":{"self":[{"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2335"}],"collection":[{"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=2335"}],"version-history":[{"count":9,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2335\/revisions"}],"predecessor-version":[{"id":31318,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2335\/revisions\/31318"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/2341"}],"wp:attachment":[{"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=2335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=2335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=2335"}],"curies":[{"name":"wp","href":"https:\/\/web.archive.org\/web\/20240926031856\/https:\/\/api.w.org\/{rel}","templated":true}]}}