{"id":25537241,"date":"2022-08-07T20:00:30","date_gmt":"2022-08-07T14:30:30","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25537241"},"modified":"2023-11-28T12:01:07","modified_gmt":"2023-11-28T06:31:07","slug":"python-if-else-statements-a-detailed-study","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/","title":{"rendered":"Python If-else statements: A Detailed Study"},"content":{"rendered":"<p>Python is a popular programming language with many applications. The bulk of you is already aware of machine learning and web development, two fields in which the Python language is used. Python, a high-level, dynamically typed computer language, is one of the most well-liked general-purpose programming languages. Python is one of many high-level, object-oriented, and interpretive programming languages. It is referred to as an interpreted language since its source code is translated into bytecode before being interpreted. CPython frequently converts Python code to bytecode before examining it. The Python framework also includes modules and packages that help with code reuse. Python has open-source software available. It can be downloaded for free and used in applications. It is also possible to access and modify the source code.<\/p>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Ready to take your python skills to the next level? Sign up for a free demo today!&#8221;<\/a><\/strong><\/p>\n<p>When we wish to only run a piece of code if a certain condition is met, we must make a decision. Python uses the if&#8230;else statement to make decisions. In this case, the program analyses the test phrase and only executes the statement if the result is True. The statement is not performed if the test expression returns False. The indentation in Python marks the location of the if statement&#8217;s body. The first unindented line after the indentation signals the end of the body. Python considers values that are not zero as True. False is the interpretation of None and 0.<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" colspan=\"3\">\n<h5><span style=\"color: #ffffff;\"><strong>Are you aspiring for a booming career in IT? If YES, then dive in<\/strong><\/span><\/h5>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<h5><a href=\"https:\/\/entri.app\/course\/full-stack-developer-course\/\"><strong>Full Stack Developer Course<\/strong><\/a><\/h5>\n<\/td>\n<td>\n<h5><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\"><strong>Python Programming Course<\/strong><\/a><\/h5>\n<\/td>\n<td>\n<h5><a href=\"https:\/\/entri.app\/course\/data-science-and-machine-learning-course\/\"><strong>Data Science and Machine Learning Course<\/strong><\/a><\/h5>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Nested if else in Python<\/h2>\n<p>In real life, there are times when we must make choices, and based on those choices, we determine what to do next. Programming encounters similar scenarios where we must make choices and then carry out the following block of code following those choices. Python&#8217;s decision-making statements are used to do this. It is possible to nest one if&#8230;elif&#8230;else expression inside of another. Nesting is the term used in computer programming for this. These sentences can be nested inside of one another in any number of ways. The level of nesting can only be determined by indentation. If possible, we should avoid doing this because it can be confusing.<\/p>\n<p>One if&#8230;elif&#8230;else&#8230;expression can be nested inside of another. The phrase for this in computer programming is nesting. There are numerous ways to nest these statements inside of one another. Only indentation can reveal the degree of nesting. They can be confusing and should be avoided unless absolutely necessary.<\/p>\n<p>The syntax of nested if else in python is:<\/p>\n<p>if (condition1):<\/p>\n<p># Executes when condition1 is true<\/p>\n<p>if (condition2):<\/p>\n<p># Executes when condition2 is true<\/p>\n<p># if Block is end here<\/p>\n<p># if Block is end here<\/p>\n<p>Let us look at an example of nested if else in Python:<\/p>\n<p># Python program to demonstrate<\/p>\n<p># nested if statement<\/p>\n<p>num = 20<\/p>\n<p>if num &gt;= 0:<\/p>\n<p>if num == 0:<\/p>\n<p>print(&#8220;Zero&#8221;)<\/p>\n<p>else:<\/p>\n<p>print(&#8220;Positive number&#8221;)<\/p>\n<p>else:<\/p>\n<p>print(&#8220;Negative number&#8221;)<\/p>\n<p>Output &#8211; Positive Number<\/p>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Experience the power of our web development course with a free demo &#8211; enroll now!&#8221;<\/a><\/strong><\/p>\n<h3>Flowchart for if else<\/h3>\n<p>When using a condition statement, the program chooses whether to execute a specific code block based on the input and the conditions. Like any other fully-featured programming language, Python allows a variety of ways to make decisions; one of the most popular approaches is to use the if else statement. To determine whether the given condition is true or false, an If Statement is utilized. Only when the condition is satisfied is the code block below run. Similar to the If statement, the If Else statement adds a second code block that is run if the conditions are not met. We shall examine this statement type and an example of it in this post. The flow chart for the if-else statement is as follows:<\/p>\n<p>Condition \u2192 if block (when the condition is true)<\/p>\n<p>\u2193<\/p>\n<p>Else Block (when the condition is false)<\/p>\n<p>The condition in an if-else statement creates two paths for the program to follow, as you can see in the flowchart above. The program executes the Else block statement instead of the code below it if the condition is not met. On the other hand, if the &#8220;if&#8221; condition is satisfied, the computer jumps to the next block of code below and ends the &#8220;if else&#8221; statement. The syntax for If else statement is as observes:<\/p>\n<p>if condition:<\/p>\n<p># statements to execute when the conditions are met are inserted here<\/p>\n<p>else:<\/p>\n<p># Statements to be executed when the requirements are not met.<\/p>\n<ul>\n<li>if, elif, else syntax in Python<\/li>\n<\/ul>\n<p>Elif is an acronym meaning &#8220;else if.&#8221; It allows us to search across a variety of expressions.<\/p>\n<p>The condition of the next elif block is examined if the condition is False, and so on.<\/p>\n<p>If every condition is false, the otherwise body is executed. Only one of the numerous if&#8230;elif&#8230;else blocks is executed as a result of the condition. The if block can only include one additional block. There might be more than one elif block, though.<\/p>\n<ul>\n<li>If, else syntax in Python<\/li>\n<\/ul>\n<p>The if..else statement evaluates the test phrase and runs the if statement&#8217;s body when the test condition is True. If the condition is False, the else clause&#8217;s body is put into action. There is an indentation separating the blocks.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\"><strong>Python Programming Course in Different Cities<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/python-training-course-in-trivandrum\/\"><strong>Python Training in Trivandrum | Learn Python Course in Trivandrum<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/python-training-course-in-kochi\/\"><strong>Python Training in Kochi | Learn Python Programming Online<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/python-training-course-in-calicut\/\"><strong>Python Training in Calicut | Learn Python Programming Online in Kozhikode<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Conclusion<\/h4>\n<p>One of the fundamental tenets of programming is decision-making. To become proficient in programming, you must be able to construct appropriate conditional statements, but it&#8217;s also crucial to complete tasks frequently. If you are familiar with conditional expressions like if, if-else, and nested if, you can use the program to make decisions and obtain logically sound results.<\/p>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Get hands-on with our python course &#8211; sign up for a free demo!&#8221;<\/a><\/strong><\/p>\n<h4><strong>Related Articles<\/strong><\/h4>\n<div class=\"table-responsive wprt_style_display\">\n<table class=\"table\" dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"329\" \/>\n<col width=\"309\" \/><\/colgroup>\n<tbody>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Syllabus&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-village-field-assistant-vfa-syllabus-exam-pattern\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/step-by-step-guide-for-getting-a-job-as-a-python-developer\/42\" target=\"_blank\" rel=\"noopener\">A Step-by-Step Guide for Getting a Job as a Python Developer<\/a><\/strong><\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Mock Test&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-free-mock-test\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/learn-about-python-keywords-and-identifiers-an-overview\/\" target=\"_blank\" rel=\"noopener\">Learn About Python Keywords and Identifiers<\/a><\/strong><\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Exam Date&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-exam-date\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/type-conversion-in-python\/\" target=\"_blank\" rel=\"noopener\">What is Type Conversion in Python?<\/a><\/strong><\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Video Course&quot;}\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/constructors-and-destructors-in-python\/\" target=\"_blank\" rel=\"noopener\">What are Constructors and Destructors in Python?<\/a><\/strong><\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Application Form&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-apply-online\/\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/blog\/python-online-course\/\" target=\"_blank\" rel=\"noopener\">Best Online Python Course with Certificate<\/a><\/strong><\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Kerala PSC VFA Study Materials&quot;}\" data-sheets-hyperlink=\"https:\/\/entri.app\/blog\/kerala-psc-vfa-study-material\/\"><a href=\"https:\/\/entri.app\/blog\/switch-case-in-python-switch-function\/\"><strong>Switch Case in Python<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" colspan=\"3\"><strong>Our Other Courses<\/strong><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/mep-course\/\"><strong>MEP Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/quantity-surveying-course\/\"><strong>Quantity Surveying Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/montessori-teachers-training-course\/\"><strong>Montessori Teachers Training Course<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/entri.app\/course\/performance-marketing-course\/\"><strong>Performance Marketing Course\u00a0<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/practical-accounting-course\/\"><strong>Practical Accounting Course<\/strong><\/a><\/td>\n<td><a href=\"https:\/\/entri.app\/course\/yoga-teachers-training-course\/\"><strong>Yoga Teachers Training Course<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Python is a popular programming language with many applications. The bulk of you is already aware of machine learning and web development, two fields in which the Python language is used. Python, a high-level, dynamically typed computer language, is one of the most well-liked general-purpose programming languages. Python is one of many high-level, object-oriented, and [&hellip;]<\/p>\n","protected":false},"author":91,"featured_media":25537242,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1841,1888],"tags":[],"class_list":["post-25537241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-entri-skilling","category-python-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python If-else statements: A Detailed Study - Entri Blog<\/title>\n<meta name=\"description\" content=\"Learn how to use Python If-Else statement to make decisions in your code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python If-else statements: A Detailed Study - Entri Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to use Python If-Else statement to make decisions in your code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-07T14:30:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-28T06:31:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kiranlal VT\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kiranlal VT\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\"},\"author\":{\"name\":\"Kiranlal VT\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/5c2c274e024447e3b9e8b4ee88389e4f\"},\"headline\":\"Python If-else statements: A Detailed Study\",\"datePublished\":\"2022-08-07T14:30:30+00:00\",\"dateModified\":\"2023-11-28T06:31:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\"},\"wordCount\":1076,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png\",\"articleSection\":[\"Articles\",\"Entri Skilling\",\"Python Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\",\"url\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\",\"name\":\"Python If-else statements: A Detailed Study - Entri Blog\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png\",\"datePublished\":\"2022-08-07T14:30:30+00:00\",\"dateModified\":\"2023-11-28T06:31:07+00:00\",\"description\":\"Learn how to use Python If-Else statement to make decisions in your code.\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png\",\"width\":820,\"height\":615,\"caption\":\"Python If-else statements: A Detailed Study\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/python-programming\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python If-else statements: A Detailed Study\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/5c2c274e024447e3b9e8b4ee88389e4f\",\"name\":\"Kiranlal VT\",\"url\":\"https:\/\/entri.app\/blog\/author\/kiranlal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python If-else statements: A Detailed Study - Entri Blog","description":"Learn how to use Python If-Else statement to make decisions in your code.","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:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/","og_locale":"en_US","og_type":"article","og_title":"Python If-else statements: A Detailed Study - Entri Blog","og_description":"Learn how to use Python If-Else statement to make decisions in your code.","og_url":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2022-08-07T14:30:30+00:00","article_modified_time":"2023-11-28T06:31:07+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png","type":"image\/png"}],"author":"Kiranlal VT","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Kiranlal VT","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/"},"author":{"name":"Kiranlal VT","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/5c2c274e024447e3b9e8b4ee88389e4f"},"headline":"Python If-else statements: A Detailed Study","datePublished":"2022-08-07T14:30:30+00:00","dateModified":"2023-11-28T06:31:07+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/"},"wordCount":1076,"commentCount":0,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png","articleSection":["Articles","Entri Skilling","Python Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/","url":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/","name":"Python If-else statements: A Detailed Study - Entri Blog","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png","datePublished":"2022-08-07T14:30:30+00:00","dateModified":"2023-11-28T06:31:07+00:00","description":"Learn how to use Python If-Else statement to make decisions in your code.","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/08\/Untitled1601.png","width":820,"height":615,"caption":"Python If-else statements: A Detailed Study"},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/python-if-else-statements-a-detailed-study\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Programming","item":"https:\/\/entri.app\/blog\/category\/python-programming\/"},{"@type":"ListItem","position":3,"name":"Python If-else statements: A Detailed Study"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/5c2c274e024447e3b9e8b4ee88389e4f","name":"Kiranlal VT","url":"https:\/\/entri.app\/blog\/author\/kiranlal\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25537241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25537241"}],"version-history":[{"count":9,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25537241\/revisions"}],"predecessor-version":[{"id":25569583,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25537241\/revisions\/25569583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25537242"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25537241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25537241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25537241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}