

{"id":6938,"date":"2018-02-01T06:54:15","date_gmt":"2018-02-01T01:24:15","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=6938"},"modified":"2025-07-15T17:08:59","modified_gmt":"2025-07-15T11:38:59","slug":"python-multiple-inheritance","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/","title":{"rendered":"Python Multiple Inheritance &#8211; Python MRO (Method Resolution Order)"},"content":{"rendered":"<p>In our last article, we discussed\u00a0Python inheritance. Here, Python Multiple Inheritance tutorial, we will discuss what is Multiple inheritances in Python with its examples and uses.<\/p>\n<p>On the other hand, we will learn Python MRO (Method Resolution Order). At last, we will learn complications in Multiple Inheritance in Python Programming Language.<\/p>\n<p>So, let&#8217;s start Python Multiple Inheritance Tutorial.<\/p>\n<h3>What is Python Multiple Inheritance?<\/h3>\n<p>As its name is indicative, multiple inheritance in python is when a class inherits from multiple classes.\u00a0One example of this would be that a child inherits personality traits from both parents.<\/p>\n<div id=\"attachment_6940\" style=\"width: 729px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/multiple.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6940\" class=\"wp-image-6940 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/multiple.jpg\" alt=\"Python Multiple Inheritance - Example\" width=\"719\" height=\"381\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/multiple.jpg 719w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/multiple-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/multiple-300x159.jpg 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/a><p id=\"caption-attachment-6940\" class=\"wp-caption-text\">Python Multiple Inheritance &#8211; Example<\/p><\/div>\n<p>Python allows a class to inherit from many parents at once. You write class AmphibiousCar(Car, Boat): to mix driving and sailing skills. This is called multiple inheritance.<\/p>\n<p>Before we proceed to multiple inheritance syntaxes, let\u2019s see the python syntax.<\/p>\n<p>Use multiple inheritance with care. It can solve tricky problems\u2014like mixing a Logger class into many tools\u2014but too many parents can tangle code. Simple designs often work best.<\/p>\n<h3>Python Multiple Inheritance Syntax<\/h3>\n<p>To make a class inherit from multiple python classes, we write the names of these classes inside the parentheses to the derived class while defining it.<\/p>\n<p>We separate these names with commas.<\/p>\n<p>The code for the previous example would be:<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; class Mother:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\r\n&gt;&gt;&gt; class Father:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\r\n&gt;&gt;&gt; class Child(Mother,Father):\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\r\n&gt;&gt;&gt; issubclass(Child,Mother) and issubclass(Child,Father)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">True<\/div>\n<h3>Python MRO (Method Resolution Order)<\/h3>\n<p>When we search for an attribute in a class that is involved in python multiple inheritance, an order is followed.<\/p>\n<p>First, it is searched in the current class. If not found, the search moves to parent classes. This is left-to-right, depth-first.<\/p>\n<p>So, in the above class, the search order will be &#8211; Child, Mother, Father, Object.<\/p>\n<p>This order is called linearization of class Child, and the set of rules applied are called MRO (Method Resolution Order).<\/p>\n<p>To get the MRO of a class, you can use either the __mro__ attribute or the mro() method.<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; Child.__mro__<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">(&lt;class &#8216;__main__.Child&#8217;&gt;, &lt;class &#8216;__main__.Mother&#8217;&gt;, &lt;class &#8216;__main__.Father&#8217;&gt;, &lt;class &#8216;object&#8217;&gt;)<\/div>\n<p>The __mro__ attribute returns a tuple, but the mro() method returns a python list.<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; Child.mro()<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[&lt;class &#8216;__main__.Child&#8217;&gt;, &lt;class &#8216;__main__.Mother&#8217;&gt;, &lt;class &#8216;__main__.Father&#8217;&gt;, &lt;class &#8216;object&#8217;&gt;]<\/div>\n<p>To take a more complex example that also demonstrates depth-first search, we take 6 classes.<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; class X:pass\r\n&gt;&gt;&gt; class Y: pass\r\n&gt;&gt;&gt; class Z:pass\r\n&gt;&gt;&gt; class A(X,Y):pass\r\n&gt;&gt;&gt; class B(Y,Z):pass\r\n&gt;&gt;&gt; class M(B,A,Z):pass<\/pre>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; M.mro()<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[&lt;class &#8216;__main__.M&#8217;&gt;, &lt;class &#8216;__main__.B&#8217;&gt;, &lt;class &#8216;__main__.A&#8217;&gt;, &lt;class &#8216;__main__.X&#8217;&gt;, &lt;class &#8216;__main__.Y&#8217;&gt;, &lt;class &#8216;__main__.Z&#8217;&gt;, &lt;class &#8216;object&#8217;&gt;]<\/div>\n<p>We can represent this with the following diagram.<\/p>\n<div id=\"attachment_6941\" style=\"width: 358px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/MRO.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6941\" class=\"wp-image-6941 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/MRO.jpg\" alt=\"Python Multiple Inheritance - Method Resolution order (MRO)\" width=\"348\" height=\"431\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/MRO.jpg 348w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/MRO-121x150.jpg 121w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/MRO-242x300.jpg 242w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/a><p id=\"caption-attachment-6941\" class=\"wp-caption-text\">Python Multiple Inheritance &#8211; Method Resolution order (MRO)<\/p><\/div>\n<p>First, the interpreter scans M. Then, it scans B, and then A-B first because of the order of arguments at the time of inheritance.<\/p>\n<p>It scans Z later, after X and Y. The order is- X, then Y, then Z. This is because due to depth-first search, X comes first to A.<\/p>\n<p>Finally, it scans the class object. Hence, the order.<\/p>\n<h3>Complications in Python Multiple Inheritance<\/h3>\n<p>What happens when the classes we inherit from all have a common attribute? Whose value does the child class take, then?<\/p>\n<p>Let\u2019s take three classes A, B, and C.<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; class A:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id=1\u00a0\u00a0 \u00a0  \u00a0 \u00a0 \u00a0\u00a0\r\n&gt;&gt;&gt; class B:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id=2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n&gt;&gt;&gt; class C:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id=3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n&gt;&gt;&gt; class M(A,C,B):\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\r\n&gt;&gt;&gt; M.id<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">1<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; M.id<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">1<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; class M(C,B,A):\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\r\n&gt;&gt;&gt; M.id<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">3<\/div>\n<p>Like we see here, the class named first in the inheritance passes its value to the child class for the common attribute.<\/p>\n<p>Earlier, it was A, so, M had id=1. Then, when we changed it to C, M got id=3. This is the same with Python methods\/functions of the class.<\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; class A:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 def sayhi():\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(\"A\") \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\n&gt;&gt;&gt; class B:\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 def sayhi():\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print(\"B\")\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\r\n&gt;&gt;&gt; class M(A,B):\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\r\n&gt;&gt;&gt; M.sayhi()<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">A<\/div>\n<p>So, this was all about Python Multiple Inheritance Tutorial. Hope you like our explanation on Python MRO.<\/p>\n<h3>Python Interview Questions on Multiple Inheritance<\/h3>\n<p>1. How do you achieve multiple inheritance in Python?<\/p>\n<p>2. When should we use multiple inheritance in Python?<\/p>\n<p>3. What are the advantages and disadvantages of Python multiple inheritance?<\/p>\n<p>4. What is Python multiple inheritance? Explain with an example.<\/p>\n<p>5. How does Python multiple inheritance work?<\/p>\n<h3>Conclusion<\/h3>\n<p>Hence, in this tutorial, we discussed python multiple inheritances and its syntax and examples.<\/p>\n<p>We also talked about Method Resolution Order(MRO) and last we discuss, complications in multiple inheritances in python.<\/p>\n<p>Keep going with us in Python and give us your valuable feedbacks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last article, we discussed\u00a0Python inheritance. Here, Python Multiple Inheritance tutorial, we will discuss what is Multiple inheritances in Python with its examples and uses. On the other hand, we will learn Python&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":6942,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[8675,8915,8948,8949,10689,10692,10694,10696,10697],"class_list":["post-6938","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-method-resolution-order","tag-mro","tag-multiple-inheritance-in-python","tag-multiple-inheritance-in-python-examples","tag-python-mro","tag-python-multiple-inheritance","tag-python-multiple-inheritance-init","tag-python-multiple-inheritance-order","tag-python-multiple-inheritance-syntax"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Multiple Inheritance - Python MRO (Method Resolution Order) - DataFlair<\/title>\n<meta name=\"description\" content=\"Python Multiple Inheritance - Syntax &amp; example, Python Method Resolution Order- MRO in Python, Complication in Multiple inheritance in Python\" \/>\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-multiple-inheritance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Multiple Inheritance - Python MRO (Method Resolution Order) - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Python Multiple Inheritance - Syntax &amp; example, Python Method Resolution Order- MRO in Python, Complication in Multiple inheritance in Python\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/\" \/>\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-02-01T01:24:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-15T11:38:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Multiple-Inheritance-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 Multiple Inheritance - Python MRO (Method Resolution Order) - DataFlair","description":"Python Multiple Inheritance - Syntax & example, Python Method Resolution Order- MRO in Python, Complication in Multiple inheritance in Python","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-multiple-inheritance\/","og_locale":"en_US","og_type":"article","og_title":"Python Multiple Inheritance - Python MRO (Method Resolution Order) - DataFlair","og_description":"Python Multiple Inheritance - Syntax & example, Python Method Resolution Order- MRO in Python, Complication in Multiple inheritance in Python","og_url":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-02-01T01:24:15+00:00","article_modified_time":"2025-07-15T11:38:59+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Multiple-Inheritance-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-multiple-inheritance\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Multiple Inheritance &#8211; Python MRO (Method Resolution Order)","datePublished":"2018-02-01T01:24:15+00:00","dateModified":"2025-07-15T11:38:59+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/"},"wordCount":721,"commentCount":25,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Multiple-Inheritance-01.jpg","keywords":["Method Resolution Order","MRO","Multiple Inheritance in Python","Multiple Inheritance in Python examples","python MRO","Python Multiple Inheritance","Python Multiple Inheritance init","python multiple inheritance order","Python Multiple Inheritance Syntax"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/","url":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/","name":"Python Multiple Inheritance - Python MRO (Method Resolution Order) - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Multiple-Inheritance-01.jpg","datePublished":"2018-02-01T01:24:15+00:00","dateModified":"2025-07-15T11:38:59+00:00","description":"Python Multiple Inheritance - Syntax & example, Python Method Resolution Order- MRO in Python, Complication in Multiple inheritance in Python","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Multiple-Inheritance-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Multiple-Inheritance-01.jpg","width":1200,"height":628,"caption":"Python Multiple Inheritance"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-multiple-inheritance\/#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 Multiple Inheritance &#8211; Python MRO (Method Resolution Order)"}]},{"@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\/6938","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=6938"}],"version-history":[{"count":10,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6938\/revisions"}],"predecessor-version":[{"id":145892,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6938\/revisions\/145892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/6942"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=6938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=6938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=6938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}