{"id":10230,"date":"2021-03-26T08:34:21","date_gmt":"2021-03-26T03:04:21","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=10230"},"modified":"2023-05-04T13:45:22","modified_gmt":"2023-05-04T08:15:22","slug":"empty-string-python","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/empty-string-python\/","title":{"rendered":"7 Quick Ways to Check If String is Empty in Python"},"content":{"rendered":"\n<p>Python strings are <strong>immutable, i.e.,<\/strong> we can change the strings according to the operations performed. String Manipulation is the most important feature in python. You can manipulate the string by many methods such as String slicing techniques, looping over the elements, and string methods. <strong>But. Sometimes we come to the situation where we need to check if the Python string is empty or not and the <a href=\"http:\/\/www.pythonpool.com\/python-check-if-list-is-empty\/\" target=\"_blank\" rel=\"noreferrer noopener\">list is empty<\/a>. In this article, we will be discussing ways to check if the string is empty or not in Python.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>NOTE : String which has spaces in them are empty string but has a non-zero size.<\/strong><\/code><\/pre>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 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\" style=\"cursor:inherit\">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\/empty-string-python\/#7_Different_ways_to_check_if_the_string_is_empty_or_not\" >7 Different ways to check if the string is empty or not<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#1_Using_len_method\" >1. Using len() method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#2_Using_not_operator_To_Check_If_String_Is_Empty_String_In_Python\" >2. Using not operator To Check If String Is Empty String In Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#3_Using_and_operator_strip_function_to_check_if_string_is_empty_string_in_python\" >3. Using and operator + strip() function to check  if string is empty string in python<\/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\/empty-string-python\/#4_Using_Strip_function_only_To_Check_Empty_String_In_Python\" >4. Using Strip() function only To Check Empty String In Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#5_Using_not_operator_strisspace\" >5. Using not operator + str.isspace()<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#6_Using_eq_method\" >6. Using __eq__ method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#7_Using_Regex_To_Check_Empty_String_In_Python\" >7. Using Regex To Check Empty String In Python<\/a><\/li><\/ul><\/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\/empty-string-python\/#Add_Empty_Strings_In_Python\" >Add Empty Strings 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\/empty-string-python\/#Empty_String_In_Python_As_Boolean\" >Empty String In Python As Boolean<\/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\/empty-string-python\/#Empty_String_Join_Python\" >Empty String Join Python<\/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\/empty-string-python\/#FAQs\" >FAQs<\/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\/empty-string-python\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-7-different-ways-to-check-if-the-string-is-empty-or-not\"><span class=\"ez-toc-section\" id=\"7_Different_ways_to_check_if_the_string_is_empty_or_not\"><\/span>7 Different ways to check if the string is empty or not<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let us discuss certain ways through which we can check if the string is an empty string or not.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-using-len-method\"><span class=\"ez-toc-section\" id=\"1_Using_len_method\"><\/span>1. Using len() method<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We will be calculating the length of the string with the help of len() in python. Then, we will check if the string&#8217;s length is equal to 0, then the string is empty; otherwise, not.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>NOTE: If the string contains spaces in it the string is not treated as the empty string by using the len() function in python<\/strong> <\/code><\/pre>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#input empty with and without spaces string\ns = &quot;&quot;\nstr = &quot;    &quot;\n\nx = len(s)\ny = len(str)\n\nif x == 0:\n    print(&quot;string is empty&quot;)\nelse:\n    print(&quot;string is not empty&quot;)\n    \nif y == 0:\n    print(&quot;string is empty&quot;)\nelse:\n    print(&quot;string is not empty&quot;)\n\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string is empty\nstring is not empty<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. Then, we have calculated the length of both the strings with the len() function in python. Then, we have applied the if-else loop and checked if the string&#8217;s length is equal to 0, then the print string is empty, and if it is not empty, print not empty. In the len(), whitespaces are not treated as empty in the string, giving the output as a not empty string. At last, we have printed the output of both the string. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-using-not-operator-to-check-if-string-is-empty-string-in-python\"><span class=\"ez-toc-section\" id=\"2_Using_not_operator_To_Check_If_String_Is_Empty_String_In_Python\"><\/span>2. Using not operator To Check If String Is Empty String In Python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><em>Not<\/em> operator is used to perform the same task as of len() function. The empty string is always equivalent to False in Python. If we want to check if the string is empty or not, we can check it with the help of <em>not<\/em> operator. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>NOTE: If the string contains spaces in it the string is not treated as the empty string by using the not operator in python <\/strong><\/code><\/pre>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#input empty with and without spaces string\ns = &quot;&quot;\nstr = &quot;    &quot;\n\nif not s:\n    print(&quot;string is empty&quot;)\nelse:\n    print(&quot;string is not empty&quot;)\n    \nif not str:\n    print(&quot;string is empty&quot;)\nelse:\n    print(&quot;string is not empty&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string is empty\nstring is not empty<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. Then, we have applied if else condition in which we have checked if not in string, then the string is empty. Otherwise, it is not empty. The not operator also does not treat whitespaces as the empty string so that the output will come as not an empty string of the second input string. At last, we have printed the output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-using-and-operator-strip-function-to-check-if-string-is-empty-string-in-python\"><span class=\"ez-toc-section\" id=\"3_Using_and_operator_strip_function_to_check_if_string_is_empty_string_in_python\"><\/span>3. Using and operator + strip() function to check  if string is empty string in python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes, we see that the whitespaces present in the string are not treated as empty strings. So, when we check for the empty string, we can also check for the whitespaces through the strip() function.<\/p>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#input empty with and without spaces string\ns = &quot;&quot;\nstr = &quot;    &quot;\n\nif s and s.strip():\n    print(&quot;string is not empty&quot;)\nelse:\n    print(&quot;string is empty&quot;)\n    \nif str and str.strip():\n    print(&quot;string is not empty&quot;)\nelse:\n    print(&quot;string is empty&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string is empty\nstring is empty<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. We have applied the if-else condition and checked with the strip() function that the string is empty or not. If the condition gets False, that means the string is empty, and else blocks get executed. In this function, whitespace is also treated as empty strings. At last, we have printed the output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-using-strip-function-only-to-check-empty-string-in-python\"><span class=\"ez-toc-section\" id=\"4_Using_Strip_function_only_To_Check_Empty_String_In_Python\"><\/span>4. Using Strip() function only To Check Empty String In Python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes, we see that the whitespaces present in the string are not treated as empty strings. So, when we check for the empty string, we can also check for the whitespaces through the strip() function.<\/p>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#input empty with and without spaces string\ns = &quot;&quot;\nstr = &quot;    &quot;\n\nif s.strip():\n    print(&quot;string is not empty&quot;)\nelse:\n    print(&quot;string is empty&quot;)\n    \nif str.strip():\n    print(&quot;string is not empty&quot;)\nelse:\n    print(&quot;string is empty&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string is empty\nstring is empty<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. We have applied if else condition in which we strip the strings, i.e., whitespaces gets removed, and then if the string gets empty, it will be an empty string. Otherwise, the string is not empty. At last, we have printed the output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-5-using-not-operator-str-isspace\"><span class=\"ez-toc-section\" id=\"5_Using_not_operator_strisspace\"><\/span>5. Using not operator + str.isspace() <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It works the same as the strip() function as it checks for the whitespaces in the strip. But, strip() function a lot of time as compared to str. isspace() function because strip() has to perform strip operation, which takes a lot of computation loads. <\/p>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#input empty with and without spaces string\ns = &quot;&quot;\nstr = &quot;    &quot;\n\nif s and not s.isspace():\n    print(&quot;string is not empty&quot;)\nelse:\n    print(&quot;string is empty&quot;)\n    \nif str and not str.isspace():\n    print(&quot;string is not empty&quot;)\nelse:\n    print(&quot;string is empty&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string is empty\nstring is empty<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. We have applied the if-else condition. In the if-else condition, we have applied the <strong>isspace() function<\/strong>, which will check all the string spaces. Finally, we have printed the output, and you can see the output that both the strings are empty.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-6-using-eq-method\"><span class=\"ez-toc-section\" id=\"6_Using_eq_method\"><\/span>6. Using __eq__ method<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The dunder basically tells the methods that have double underscores before and after their names. We can check empty string through the __eq__ method also.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>NOTE: If the string contains spaces in it the string is not treated as the empty string by using the __eq__ method in python<\/strong> <\/code><\/pre>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#input empty with and without spaces string\ns = &quot;&quot;\nstr = &quot;    &quot;\n\nif &quot;&quot;.__eq__(s):\n    print(&quot;string is empty&quot;)\nelse:\n    print(&quot;string is not empty&quot;)\n    \nif &quot;&quot;.__eq__(str):\n    print(&quot;string is empty&quot;)\nelse:\n    print(&quot;string is not empty&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string is empty\nstring is not empty<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. We have taken the __eq__ method. We have applied the given method in the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Conditional_(computer_programming)\" target=\"_blank\" rel=\"noreferrer noopener\">if-else condition<\/a> and checked if the string is empty or not. At last, we have printed the output. This method also doesn&#8217;t treat whitespaces as empty strings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-7-using-regex-to-check-empty-string-in-python\"><span class=\"ez-toc-section\" id=\"7_Using_Regex_To_Check_Empty_String_In_Python\"><\/span>7. Using Regex To Check Empty String In Python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We can create a regex pattern to check if the given string is either empty or contains only white spaces.<\/p>\n\n\n\n<p>Let us look at the example for the better understanding of the concept:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#import re library\nimport re\ns = &quot;&quot;\nstr = &quot;         &quot;\n\nif not s or re.search(&quot;^\\s*$&quot;, s):\n    print('String is empty or has spaces')\nelse:\n    print('String is not empty')\nif not s or re.search(&quot;^\\s*$&quot;, s):\n    print('String is empty or has spaces')\nelse:\n    print('String is not empty')\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String is empty or has spaces\nString is empty or has spaces<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation:<\/strong><\/p>\n\n\n\n<p>Here, we have taken two input strings, s and str. s is an empty string, and str has whitespaces. We have imported the re library in python. Then, we have applied the if-else condition with the given <a href=\"http:\/\/www.pythonpool.com\/solved-typeerror-non-empty-format-string-passed-to-object-__format__\/\" target=\"_blank\" rel=\"noopener\">format to check whether the string is empty<\/a> or not. If the if-condition satisfies, then the output gets printed as it is an empty string. Otherwise, Output gets printed as not an empty string. Hence, you can see the output.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">Also Read: <\/span><a href=\"http:\/\/www.pythonpool.com\/python-check-if-string-is-integer\/\" rel=\"noreferrer noopener\" target=\"_blank\">5 Ways to Check if a String is Integer in Python<\/a><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-add-empty-strings-in-python\"><span class=\"ez-toc-section\" id=\"Add_Empty_Strings_In_Python\"><\/span>Add Empty Strings In Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To add a string to an empty string in Python, you can simply use the + operator. Here&#8217;s an example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nempty_string = &quot;&quot;\nnew_string = &quot;Hello, World!&quot;\nresult = empty_string + new_string\nprint(result)  # Output: &quot;Hello, World!&quot;\n<\/pre><\/div>\n\n\n<p>In this example, we create an empty string variable called empty_string. We then create a new string variable called new_string, which contains the text &#8220;Hello, World!&#8221;.<\/p>\n\n\n\n<p>To add new_string to empty_string, we use the + operator. When we print the result variable, we get the output &#8220;Hello, World!&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-empty-string-in-python-as-boolean\"><span class=\"ez-toc-section\" id=\"Empty_String_In_Python_As_Boolean\"><\/span>Empty String In Python As Boolean<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In Python, the empty string &#8220;&#8221; is considered false in boolean contexts, meaning it will evaluate to False. <\/p>\n\n\n\n<p>Here is an example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nmy_string = &quot;&quot;\nif my_string:\n    print(&quot;The string is not empty.&quot;)\nelse:\n    print(&quot;String is empty.&quot;)\n<\/pre><\/div>\n\n\n<p>In this example, we create a variable called my_string and assign it an empty string. We then use an if statement to check if my_string is true or false. Since my_string is empty, it evaluates to False and the code executes the else block and prints &#8220;String is empty.&#8221;<\/p>\n\n\n\n<p>However, if we assign a non-empty string to my_string like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmy_string = &quot;Hello world!&quot;\n<\/pre><\/div>\n\n\n<p>and you run the same code, the if statement will evaluate to True and the code will execute the if block and print &#8220;String is not empty.&#8221;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-empty-string-join-python\"><span class=\"ez-toc-section\" id=\"Empty_String_Join_Python\"><\/span>Empty String Join Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can use the join() method to concatenate a list of strings into a single string with an empty string as the separator.<\/p>\n\n\n\n<p>Consider the given example for better interpretation:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nmy_list = &#x5B;&quot;apple&quot;, &quot;banana&quot;, &quot;orange&quot;]\nresult = &quot;&quot;.join(my_list)\nprint(result)  \n# Output: &quot;applebananaorange&quot;\n<\/pre><\/div>\n\n\n<p>In this example, we create a list called my_list that contains three strings. We then use the join() method to concatenate the strings in the list into a single string. The empty string &#8220;&#8221; is used as the separator, which means that no separator will be inserted between the individual strings.<\/p>\n\n\n\n<p>When we print the result variable, we get the output &#8220;applebananaorange&#8221;.<\/p>\n\n\n\n<p>Note that if the list contains only one string or no strings at all, the join() method will return the original string or an empty string respectively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1683187994178\"><strong class=\"schema-faq-question\">How do you write an empty string?<\/strong> <p class=\"schema-faq-answer\">&#8220;&#8221;\u00a0 can be used to declare an empty string in Python. It doesn&#8217;t have any character, hence, it&#8217;s empty.\u00a0<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1683188004026\"><strong class=\"schema-faq-question\">Is An empty string None in Python?<\/strong> <p class=\"schema-faq-answer\">You can represent None variable as a representation of None data type in Python. It doesn&#8217;t mean that an empty string will imply None. For a string to be None, it should have None as a data type which is not an empty string.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1683188018615\"><strong class=\"schema-faq-question\">Can string be null in Python?<\/strong> <p class=\"schema-faq-answer\">A null string can be interpreted as empty string in Python. Its length is zero.<\/p> <\/div> <\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this tutorial, we have learned about the concept of checking the string is empty or not and if the string contains whitespaces only or not. We have explained the full concept in detail by taking all the ways to check if the string is empty. All the ways are explained in detail with the help of examples. You can use any of the methods you like to use according to your program or project requirement.<\/p>\n\n\n\n<p>However, if you have any doubts or questions, do let me know in the comment section below. I will try to help you as soon as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python strings are immutable, i.e., we can change the strings according to the operations performed. String Manipulation is the most important feature in python. You &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"7 Quick Ways to Check If String is Empty in Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/empty-string-python\/#more-10230\" aria-label=\"More on 7 Quick Ways to Check If String is Empty in Python\">Read more<\/a><\/p>\n","protected":false},"author":17,"featured_media":10263,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[3774,3772,3773,3771],"class_list":["post-10230","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-python-check-empty-string","tag-python-check-if-string-is-empty","tag-python-empty-string","tag-python-string-is-empty","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>7 Quick Ways to Check If String is Empty in Python - Python Pool<\/title>\n<meta name=\"description\" content=\"Ways through which we can check if the string is empty in Python. String which has spaces in them are empty string but has a non-zero size.\" \/>\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\/empty-string-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"7 Quick Ways to Check If String is Empty in Python\" \/>\n<meta property=\"og:description\" content=\"Python strings are immutable, i.e., we can change the strings according to the operations performed. String Manipulation is the most important feature in\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/empty-string-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-26T03:04:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-04T08:15:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1350\" \/>\n\t<meta property=\"og:image:height\" content=\"650\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Siddharth Jain\" \/>\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=\"Siddharth Jain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/\"},\"author\":{\"name\":\"Siddharth Jain\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/75a3240fabe5ea90200777a9d8d3b4fa\"},\"headline\":\"7 Quick Ways to Check If String is Empty in Python\",\"datePublished\":\"2021-03-26T03:04:21+00:00\",\"dateModified\":\"2023-05-04T08:15:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/\"},\"wordCount\":1564,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png\",\"keywords\":[\"python check empty string\",\"python check if string is empty\",\"python empty string\",\"python string is empty\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/empty-string-python\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/\",\"url\":\"https:\/\/www.pythonpool.com\/empty-string-python\/\",\"name\":\"7 Quick Ways to Check If String is Empty in Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png\",\"datePublished\":\"2021-03-26T03:04:21+00:00\",\"dateModified\":\"2023-05-04T08:15:22+00:00\",\"description\":\"Ways through which we can check if the string is empty in Python. String which has spaces in them are empty string but has a non-zero size.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683187994178\"},{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188004026\"},{\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188018615\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/empty-string-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png\",\"width\":1350,\"height\":650,\"caption\":\"empty string python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"7 Quick Ways to Check If String is Empty 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\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"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\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/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:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/75a3240fabe5ea90200777a9d8d3b4fa\",\"name\":\"Siddharth Jain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/152b0ac2e5fa2e6328f374499fff4a7a6299477b9cf7bbb15ebc01a88f8f673f?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/152b0ac2e5fa2e6328f374499fff4a7a6299477b9cf7bbb15ebc01a88f8f673f?s=96&d=wavatar&r=g\",\"caption\":\"Siddharth Jain\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683187994178\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683187994178\",\"name\":\"How do you write an empty string?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\\\"\\\"\u00a0 can be used to declare an empty string in Python. It doesn't have any character, hence, it's empty.\u00a0\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188004026\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188004026\",\"name\":\"Is An empty string None in Python?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"You can represent None variable as a representation of None data type in Python. It doesn't mean that an empty string will imply None. For a string to be None, it should have None as a data type which is not an empty string.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188018615\",\"position\":3,\"url\":\"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188018615\",\"name\":\"Can string be null in Python?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A null string can be interpreted as empty string in Python. Its length is zero.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"7 Quick Ways to Check If String is Empty in Python - Python Pool","description":"Ways through which we can check if the string is empty in Python. String which has spaces in them are empty string but has a non-zero size.","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:\/\/www.pythonpool.com\/empty-string-python\/","og_locale":"en_US","og_type":"article","og_title":"7 Quick Ways to Check If String is Empty in Python","og_description":"Python strings are immutable, i.e., we can change the strings according to the operations performed. String Manipulation is the most important feature in","og_url":"https:\/\/www.pythonpool.com\/empty-string-python\/","og_site_name":"Python Pool","article_published_time":"2021-03-26T03:04:21+00:00","article_modified_time":"2023-05-04T08:15:22+00:00","og_image":[{"width":1350,"height":650,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png","type":"image\/png"}],"author":"Siddharth Jain","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Siddharth Jain","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/"},"author":{"name":"Siddharth Jain","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/75a3240fabe5ea90200777a9d8d3b4fa"},"headline":"7 Quick Ways to Check If String is Empty in Python","datePublished":"2021-03-26T03:04:21+00:00","dateModified":"2023-05-04T08:15:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/"},"wordCount":1564,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png","keywords":["python check empty string","python check if string is empty","python empty string","python string is empty"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/empty-string-python\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/","url":"https:\/\/www.pythonpool.com\/empty-string-python\/","name":"7 Quick Ways to Check If String is Empty in Python - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png","datePublished":"2021-03-26T03:04:21+00:00","dateModified":"2023-05-04T08:15:22+00:00","description":"Ways through which we can check if the string is empty in Python. String which has spaces in them are empty string but has a non-zero size.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683187994178"},{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188004026"},{"@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188018615"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/empty-string-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/03\/empty-string-python.png","width":1350,"height":650,"caption":"empty string python"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"7 Quick Ways to Check If String is Empty 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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"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":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/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:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/75a3240fabe5ea90200777a9d8d3b4fa","name":"Siddharth Jain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/152b0ac2e5fa2e6328f374499fff4a7a6299477b9cf7bbb15ebc01a88f8f673f?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/152b0ac2e5fa2e6328f374499fff4a7a6299477b9cf7bbb15ebc01a88f8f673f?s=96&d=wavatar&r=g","caption":"Siddharth Jain"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683187994178","position":1,"url":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683187994178","name":"How do you write an empty string?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\"\"\u00a0 can be used to declare an empty string in Python. It doesn't have any character, hence, it's empty.\u00a0","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188004026","position":2,"url":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188004026","name":"Is An empty string None in Python?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"You can represent None variable as a representation of None data type in Python. It doesn't mean that an empty string will imply None. For a string to be None, it should have None as a data type which is not an empty string.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188018615","position":3,"url":"https:\/\/www.pythonpool.com\/empty-string-python\/#faq-question-1683188018615","name":"Can string be null in Python?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"A null string can be interpreted as empty string in Python. Its length is zero.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/10230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=10230"}],"version-history":[{"count":16,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/10230\/revisions"}],"predecessor-version":[{"id":27605,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/10230\/revisions\/27605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/10263"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=10230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=10230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=10230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}