

{"id":25447,"date":"2018-08-21T04:20:10","date_gmt":"2018-08-20T22:50:10","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=25447"},"modified":"2026-04-23T16:00:09","modified_gmt":"2026-04-23T10:30:09","slug":"python-assert","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-assert\/","title":{"rendered":"Python Assert Statements | Assertionerror in Python"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In what follows, we will discuss Python Assert Statements. We will see what they are, how to implement, and where to use Python Assert Statements. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Moreover, we will discuss Python Assert syntax and an example. Also, we will learn about using error messages and handling Assertionerror in Python.<\/span><\/p>\n<p>So, let&#8217;s start Python Assert Tutorial.<\/p>\n<div id=\"attachment_25474\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-25474\" class=\"wp-image-25474 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg\" alt=\"Python Assert Statements | Assertion Error in Python\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01-1024x536.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-25474\" class=\"wp-caption-text\">Python Assert Statements | Assertion Error in Python<\/p><\/div>\n<h2>What are Python Assert Statements?<\/h2>\n<p>Let&#8217;s discuss the meaning of Assertion in Python Programming Language in detail:<\/p>\n<h3>What is Assertion in Python?<\/h3>\n<p><span style=\"font-weight: 400\">An Assertion in Python or a Python Assert Statement asserts (or tests the truth of) a condition in your code. This is a Boolean expression that confirms the Boolean output of a condition.<\/span><\/p>\n<p><strong>Advantages of Assertion in Python:<\/strong><\/p>\n<ul>\n<li><strong>Faster Debugging:<\/strong> If there is an error, then the program will stop in the exact location to avoid mess.<\/li>\n<li><strong>Checks assumptions:<\/strong> It ensures that the important conditions in the program are correct.<\/li>\n<li><strong>Saves time:<\/strong> It fastens the code by quickly identifying the mistakes during the development of the program.<\/li>\n<\/ul>\n<h3>Why is Assertion in Python Used?<\/h3>\n<p><span style=\"font-weight: 400\">This is a debugging tool. If it finds the condition to be true, there is nothing it needs to do. So, it moves over to the next line of code. <\/span><\/p>\n<p><span style=\"font-weight: 400\">If not, it stops all operations and throws an error. It also shows the point of error in the code.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The point of assertions in Python is to help deal with unrecoverable errors.<\/span><\/p>\n<div id=\"attachment_25473\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/image1-1-2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-25473\" class=\"wp-image-25473 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/image1-1-2.png\" alt=\"Python Assert\" width=\"500\" height=\"372\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/image1-1-2.png 500w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/image1-1-2-150x112.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/image1-1-2-300x223.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><p id=\"caption-attachment-25473\" class=\"wp-caption-text\">The assertion in Python\u00a0programming Language<\/p><\/div>\n<h3>Where is Assertion in Python used?<\/h3>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In checking types\/ in checking valid input.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In checking the values of arguments.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Checking outputs of functions.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">As a debugger, to halt where an error occurs.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In testing code.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In detecting abuse of an interface by another programmer.<\/span><\/li>\n<\/ul>\n<h3>Python Assert Example and Syntax<\/h3>\n<p><span style=\"font-weight: 400\">Python Assert Statement is one we always want to see true. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Let\u2019s take an example and see what happens when a condition turns false-<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; assert 2==3<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Traceback (most recent call last):<br \/>\nFile &#8220;&lt;pyshell#0&gt;&#8221;, line 1, in &lt;module&gt;<br \/>\nassert 2==3<br \/>\nAssertionError<\/div>\n<p>Hence, this is an AssertionError in Python. We\u2019d use it to catch false assumptions we made while writing the code.<\/p>\n<h4>Python Assert Syntax<\/h4>\n<pre class=\"EnlighterJSRAW\">assert &lt;condition&gt;<\/pre>\n<pre class=\"EnlighterJSRAW\">assert &lt;condition&gt;, &lt;error message&gt;<\/pre>\n<h4>Python Assert Example<\/h4>\n<p><span style=\"font-weight: 400\">Now, let\u2019s devise a function to divide two numbers. What happens when we try to divide a number by 0?<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; def div(p,q):\r\n       assert q!=0\r\n       return p\/q\r\n&gt;&gt;&gt; div(2,3)\r\n0.6666666666666666\r\n&gt;&gt;&gt; div(2,0)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Traceback (most recent call last):<br \/>\nFile &#8220;&lt;pyshell#7&gt;&#8221;, line 1, in &lt;module&gt;<br \/>\ndiv(2,0)<br \/>\nFile &#8220;&lt;pyshell#5&gt;&#8221;, line 2, in div<br \/>\nassert q!=0<br \/>\nAssertionError400;&#8221;&gt;<\/div>\n<p>As you can see, this stopped the program and threw a Python AssertionError.<\/p>\n<h3>Using an Error Message in Python Assert<\/h3>\n<p><span style=\"font-weight: 400\">Instead of throwing six red lines at the developer, Python may want to display something more sophisticated and less hostile. <\/span><\/p>\n<p><span style=\"font-weight: 400\">For this, we give an error message to the assert statement. Let\u2019s see how.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; def div(p,q):\r\n        assert q!=0, \"You cannot divide a number by zero\\nPlease try again\"\r\n        return p\/q\r\n&gt;&gt;&gt; div(2,0)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Traceback (most recent call last):<br \/>\nFile &#8220;&lt;pyshell#10&gt;&#8221;, line 1, in &lt;module&gt;<br \/>\ndiv(2,0)<br \/>\nFile &#8220;&lt;pyshell#9&gt;&#8221;, line 2, in div<br \/>\nassert q!=0, &#8220;You cannot divide a number by zero\\nPlease try again&#8221;<br \/>\nAssertionError: You cannot divide a number by zero<br \/>\nPlease try again<\/div>\n<p><span style=\"font-weight: 400\">Okay, this seems longer than what we got before this, but pull a magnifying glass to the last line. <\/span><span style=\"font-weight: 400\">It tells you what really happened, but we can do better than this.<\/span><\/p>\n<h3>Handling the AssertionError in Python<\/h3>\n<p><span style=\"font-weight: 400\">Let\u2019s put this function in a try block and hope to catch it.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; try:\r\n       def div(p,q):\r\n               assert q!=0, \"You cannot divide a number by zero\\nPlease try again\"\r\n               return p\/q\r\nexcept:\r\n       print(\"So you tried to divide by 0. Please try again\")\r\n&gt;&gt;&gt; div(2,0)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Traceback (most recent call last):<br \/>\nFile &#8220;&lt;pyshell#18&gt;&#8221;, line 1, in &lt;module&gt;<br \/>\ndiv(2,0)<br \/>\nFile &#8220;&lt;pyshell#17&gt;&#8221;, line 3, in div<br \/>\nassert q!=0, &#8220;You cannot divide a number by zero\\nPlease try again&#8221;<br \/>\nAssertionError: You cannot divide a number by zero<br \/>\nPlease try again<\/div>\n<p><span style=\"font-weight: 400\">Wow, this did not work at all. Where\u2019s the \u201cSo you tried to divide by 0. Please try again\u201d? Let\u2019s give this another try.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; def div(p,q):\r\n\ttry:\r\n\t\tassert q!=0, \"You cannot divide a number by zero\\nPlease try again\"\r\n\t\treturn p\/q\r\n\texcept:\r\n\t\tprint(\"So you tried to divide by 0. Please try again\")\r\n&gt;&gt;&gt; div(2,0)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">\n<p>So, you tried to divide by 0. Please try again<\/p>\n<\/div>\n<p><span style=\"font-weight: 400\">Ah, works like a charm this time!<\/span><\/p>\n<p>So, this was all in Python Assert. Hope you like our explanation.<\/p>\n<h3>Python Interview Questions on Assert Statements<\/h3>\n<ol>\n<li>What is an assert statement in Python?<\/li>\n<li>What happens when a Python assert fails?<\/li>\n<li>How does Python assert work?<\/li>\n<li>What is an assertion in Python? Explain with an example.<\/li>\n<li>What is the syntax for the Python assert statement?<\/li>\n<\/ol>\n<h3>Conclusion<\/h3>\n<p><span style=\"font-weight: 400\">Call it sanity check or paranoia, Python assert statements help us make sure everything\u2019s going fine with our code. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Or maybe we can say that assertions in Python are a secret gift to you from yourself. Twenty days from today, you will open the box and feel grateful.<\/span><\/p>\n<p>Hence, we discussed Assert Statements in Python. Moreover, we saw Python Assert example and syntax.<\/p>\n<p>Also, we discussed using error messages and handling assertion errors in Python. <span style=\"font-weight: 400\">Have something to add to this tutorial? Feel free to drop it in the comments below.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In what follows, we will discuss Python Assert Statements. We will see what they are, how to implement, and where to use Python Assert Statements. Moreover, we will discuss Python Assert syntax and an&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":25474,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[1180,1181,1183,1184,10379,10380,10381,10382,15582],"class_list":["post-25447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-assert-statements-in-python","tag-assertion-error-in-python","tag-assertionerror-python","tag-assertions-in-python","tag-python-assert-example","tag-python-assert-multiple-conditions","tag-python-assert-statement","tag-python-assert-syntax","tag-what-is-an-assertion-in-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Assert Statements | Assertionerror in Python - DataFlair<\/title>\n<meta name=\"description\" content=\"Python Assert tutorial, Handling assertionerror python, Python Assert example, Python Assert syntax, Assert statements in Python, using error message,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/python-assert\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Assert Statements | Assertionerror in Python - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Python Assert tutorial, Handling assertionerror python, Python Assert example, Python Assert syntax, Assert statements in Python, using error message,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-assert\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-20T22:50:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-23T10:30:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Assert Statements | Assertionerror in Python - DataFlair","description":"Python Assert tutorial, Handling assertionerror python, Python Assert example, Python Assert syntax, Assert statements in Python, using error message,","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:\/\/data-flair.training\/blogs\/python-assert\/","og_locale":"en_US","og_type":"article","og_title":"Python Assert Statements | Assertionerror in Python - DataFlair","og_description":"Python Assert tutorial, Handling assertionerror python, Python Assert example, Python Assert syntax, Assert statements in Python, using error message,","og_url":"https:\/\/data-flair.training\/blogs\/python-assert\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-08-20T22:50:10+00:00","article_modified_time":"2026-04-23T10:30:09+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-assert\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Assert Statements | Assertionerror in Python","datePublished":"2018-08-20T22:50:10+00:00","dateModified":"2026-04-23T10:30:09+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-assert\/"},"wordCount":821,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg","keywords":["Assert statements in Python","Assertion error in Python","assertionerror python","Assertions in Python","Python Assert example","Python Assert Multiple conditions","Python Assert Statement","Python Assert syntax","What is an Assertion in Python?"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-assert\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-assert\/","url":"https:\/\/data-flair.training\/blogs\/python-assert\/","name":"Python Assert Statements | Assertionerror in Python - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg","datePublished":"2018-08-20T22:50:10+00:00","dateModified":"2026-04-23T10:30:09+00:00","description":"Python Assert tutorial, Handling assertionerror python, Python Assert example, Python Assert syntax, Assert statements in Python, using error message,","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-assert\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Python-Assert-Statements-01.jpg","width":1200,"height":628,"caption":"Python Assert Statements | Assertion Error in Python"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-assert\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Python Assert Statements | Assertionerror in Python"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/25447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=25447"}],"version-history":[{"count":14,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/25447\/revisions"}],"predecessor-version":[{"id":147821,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/25447\/revisions\/147821"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/25474"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=25447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=25447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=25447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}