{"id":97,"date":"2019-01-11T02:42:35","date_gmt":"2019-01-11T02:42:35","guid":{"rendered":"https:\/\/kindsonthegenius.com\/python\/?p=97"},"modified":"2026-07-04T01:20:52","modified_gmt":"2026-07-04T01:20:52","slug":"06-python-conditional-statements","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/","title":{"rendered":"Python &#8211; Conditional Statements"},"content":{"rendered":"<!-- ktg-updated-banner -->\n<div class=\"ktg-updated-banner\" style=\"margin:0 0 1.25em;padding:0.75em 1em;background:#fefce8;border-left:4px solid #ca8a04;border-radius:4px;\">\n<p><strong>Updated June 29, 2026.<\/strong> Refreshed for Python 3.12+ and current SEO best practices.<\/p>\n<\/div>\n\n<p>Conditional statements allows you to make decisions on what part of your program would execute based on certain criteria.<br \/>The criteria is specified in form of an expression that evaluates to either True or False. So you write code that would execute depending on either the result is True or False.<\/p>\r\n<p>The general form of Python conditional statement is given in Figure 1.0.<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-137\" src=\"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python.jpg\" alt=\"\" width=\"270\" height=\"376\" srcset=\"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python.jpg 449w, https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-216x300.jpg 216w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/>\r\n<figcaption>Figure 1.0: Conditional Statement in Python<\/figcaption>\r\n<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">By default, non-zero values or non-null values in Python have a value of True while zero or null values have a value of False<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The following three conditional statement construct can be implemented in Python<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>If Statements: <\/strong>This is a statement (condition) followed by a block of one or more statements which are executed if the condition evaluates to true. If the condition if false, the block is ignored and execution continues with statements after the block. Example of If statement is given in the code below.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>a = 20\r\nb = 40\r\nif a == b:\r\n    print(\"a is equal to b\")<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>if &#8230; else Statement:<\/strong> This is like the if statement, but provides an optional else block which must be executed if the condition evaluates to false. This is shown in the code below<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>a = 20\r\nb = 40\r\nif a == b:\r\n    print(\"a is equal to b\")\r\nelse:\r\n    print(\"a is not equal to b\")<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>elif Statement: <\/strong>This is a situation when more than one condition is to be evaluated. In this case, if the first condition evaluates to False, the elif provides a second condition to check. The structure of the <strong>elif <\/strong>statment is given below<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>a = 20\r\nb = 40\r\nif a == b:\r\n    print(\"a is equal to b\")\r\nelif a &gt; b:\r\n    print(\"a is greater than b\")\r\nelse:\r\n    print(\"a is less than b\")<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Nested If Statements: This is a situation where a second condition have to be evaluated if the first condition is True. In this case, the second if statement is nested inside the first if statement. This is shown below<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>a = int(input(\"Please enter a number\"))\r\nif a &lt; 100:\r\n    if &gt; 50:\r\n         print(\"a is less than 100 but greater than 50\")\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Try out the code below the is used to assign a grade A, B, C, D, E to a score. You can also watch the video below to see how it is explained and implemented in PyCharm<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>a = input(\"Enter a number\")\r\na = float(a)\r\nif a&gt;= 70 and a &lt;= 100:\r\n    print(\"A\")\r\nelif a &gt;= 60 and a &lt;=69:\r\n    print(\"B\")\r\nelif a &gt;= 50 and a&lt;=59:\r\n    print(\"C\")\r\nelif a &gt; 45 and a &lt; 59\r\n    print(\"D\")<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Watch the Video<\/strong><\/p>\r\n\r\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/zC7RUwy3-L8\" width=\"100%\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\n\n<!-- ktg-lesson-nav -->\n<nav class=\"ktg-lesson-nav\" aria-label=\"Lesson navigation\">\n<p><strong>Previous:<\/strong> <a href=\"https:\/\/kindsonthegenius.com\/python\/05-python-operators\/\">Lesson 5: Python &#8211; Operators<\/a><\/p>\n<p><strong>Next:<\/strong> <a href=\"https:\/\/kindsonthegenius.com\/python\/07-loops-in-python\/\">Lesson 7: Python &#8211; Loops<\/a><\/p>\n<\/nav>\n\n<!-- ktg-alkademy-cta -->\n<div class=\"ktg-alkademy-cta\" style=\"margin:2em 0;padding:1.25em;border-left:4px solid #2563eb;background:#f8fafc;\">\n<p><strong>Want live Python classes?<\/strong> Join <a href=\"https:\/\/www.alkademy.com\/courses\" target=\"_blank\" rel=\"noopener noreferrer\">Alkademy<\/a> for instructor-led Python and data science courses with hands-on projects.<\/p>\n<\/div>\n\n<!-- ktg-author-trust -->\n<div class=\"ktg-author-trust\" style=\"margin:2em 0;padding:1.25em;border-top:1px solid #e2e8f0;\">\n<p>Kindson Munonye is a software engineer and technical author specializing in Python, data science, and machine learning. He publishes free step-by-step Python tutorials and live classes on Alkademy.\n\n<a href=\"https:\/\/github.com\/KindsonTheGenius\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub<\/a> \u00b7 <a href=\"https:\/\/www.linkedin.com\/in\/kindson\" target=\"_blank\" rel=\"noopener noreferrer\">LinkedIn<\/a> \u00b7 <a href=\"https:\/\/www.kindsonthegenius.com\/about\/\">About<\/a> \u00b7 <a href=\"https:\/\/www.alkademy.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Alkademy<\/a><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Updated June 29, 2026. Refreshed for Python 3.12+ and current SEO best practices. Conditional statements allows you to make decisions on what part of your &hellip; <\/p>\n","protected":false},"author":395,"featured_media":289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[10],"class_list":["post-97","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-tutorials","tag-conditional-statements-in-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python &#8211; Conditional Statements | Python Tutorials<\/title>\n<meta name=\"description\" content=\"Python &#8211; Conditional Statements \u2014 free Python tutorial with code examples. Part of the Kindson The Genius Python course. Includes runnable code examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python &#8211; Conditional Statements | Python Tutorials\" \/>\n<meta property=\"og:description\" content=\"Python &#8211; Conditional Statements \u2014 free Python tutorial with code examples. Part of the Kindson The Genius Python course. Includes runnable code examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-11T02:42:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-04T01:20:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"449\" \/>\n\t<meta property=\"og:image:height\" content=\"625\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/4a2da63f89ef7c02fea036933a688245\"},\"headline\":\"Python &#8211; Conditional Statements\",\"datePublished\":\"2019-01-11T02:42:35+00:00\",\"dateModified\":\"2026-07-04T01:20:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/\"},\"wordCount\":380,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Conditional-Statement-in-Python-1.jpg\",\"keywords\":[\"Conditional Statements in Python\"],\"articleSection\":[\"Python Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/\",\"name\":\"Python &#8211; Conditional Statements | Python Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Conditional-Statement-in-Python-1.jpg\",\"datePublished\":\"2019-01-11T02:42:35+00:00\",\"dateModified\":\"2026-07-04T01:20:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/4a2da63f89ef7c02fea036933a688245\"},\"description\":\"Python &#8211; Conditional Statements \u2014 free Python tutorial with code examples. Part of the Kindson The Genius Python course. Includes runnable code examples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Conditional-Statement-in-Python-1.jpg\",\"contentUrl\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Conditional-Statement-in-Python-1.jpg\",\"width\":449,\"height\":625,\"caption\":\"Conditional Statement in Python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/06-python-conditional-statements\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python &#8211; Conditional Statements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/#website\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/\",\"name\":\"Python Tutorials\",\"description\":\"Python Tutorial for Programming and Data Science\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/4a2da63f89ef7c02fea036933a688245\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"description\":\"Kindson Munonye is a software engineer and technical author specializing in Python, data science, and machine learning. He publishes free step-by-step Python tutorials and live classes on Alkademy. GitHub \u00b7 LinkedIn \u00b7 About \u00b7 Alkademy\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/python\\\/author\\\/kindsonthegenius-2\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python &#8211; Conditional Statements | Python Tutorials","description":"Python &#8211; Conditional Statements \u2014 free Python tutorial with code examples. Part of the Kindson The Genius Python course. Includes runnable code examples.","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:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/","og_locale":"en_US","og_type":"article","og_title":"Python &#8211; Conditional Statements | Python Tutorials","og_description":"Python &#8211; Conditional Statements \u2014 free Python tutorial with code examples. Part of the Kindson The Genius Python course. Includes runnable code examples.","og_url":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/","og_site_name":"Python Tutorials","article_published_time":"2019-01-11T02:42:35+00:00","article_modified_time":"2026-07-04T01:20:52+00:00","og_image":[{"width":449,"height":625,"url":"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-1.jpg","type":"image\/jpeg"}],"author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#article","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/kindsonthegenius.com\/python\/#\/schema\/person\/4a2da63f89ef7c02fea036933a688245"},"headline":"Python &#8211; Conditional Statements","datePublished":"2019-01-11T02:42:35+00:00","dateModified":"2026-07-04T01:20:52+00:00","mainEntityOfPage":{"@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/"},"wordCount":380,"commentCount":1,"image":{"@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-1.jpg","keywords":["Conditional Statements in Python"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/","url":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/","name":"Python &#8211; Conditional Statements | Python Tutorials","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/python\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#primaryimage"},"image":{"@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-1.jpg","datePublished":"2019-01-11T02:42:35+00:00","dateModified":"2026-07-04T01:20:52+00:00","author":{"@id":"https:\/\/kindsonthegenius.com\/python\/#\/schema\/person\/4a2da63f89ef7c02fea036933a688245"},"description":"Python &#8211; Conditional Statements \u2014 free Python tutorial with code examples. Part of the Kindson The Genius Python course. Includes runnable code examples.","breadcrumb":{"@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#primaryimage","url":"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-1.jpg","contentUrl":"https:\/\/kindsonthegenius.com\/python\/wp-content\/uploads\/2019\/01\/Conditional-Statement-in-Python-1.jpg","width":449,"height":625,"caption":"Conditional Statement in Python"},{"@type":"BreadcrumbList","@id":"https:\/\/kindsonthegenius.com\/python\/06-python-conditional-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kindsonthegenius.com\/python\/"},{"@type":"ListItem","position":2,"name":"Python &#8211; Conditional Statements"}]},{"@type":"WebSite","@id":"https:\/\/kindsonthegenius.com\/python\/#website","url":"https:\/\/kindsonthegenius.com\/python\/","name":"Python Tutorials","description":"Python Tutorial for Programming and Data Science","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kindsonthegenius.com\/python\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kindsonthegenius.com\/python\/#\/schema\/person\/4a2da63f89ef7c02fea036933a688245","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"description":"Kindson Munonye is a software engineer and technical author specializing in Python, data science, and machine learning. He publishes free step-by-step Python tutorials and live classes on Alkademy. GitHub \u00b7 LinkedIn \u00b7 About \u00b7 Alkademy","url":"https:\/\/kindsonthegenius.com\/python\/author\/kindsonthegenius-2\/"}]}},"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/users\/395"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":6,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/97\/revisions\/573"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/media\/289"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/python\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}