{"id":18446,"date":"2021-06-21T10:19:00","date_gmt":"2021-06-21T10:19:00","guid":{"rendered":"https:\/\/www.askpython.com\/?p=18446"},"modified":"2021-06-21T10:19:01","modified_gmt":"2021-06-21T10:19:01","slug":"python-course-if-else-statement","status":"publish","type":"post","link":"https:\/\/www.askpython.com\/course\/python-course-if-else-statement","title":{"rendered":"Python Course &#8211; if-else statement"},"content":{"rendered":"\n<p>In Python decisions are made with if statements also called as selection statement. The if block statements are executed if the conditions are \u2018true\u2019. In case of false condition, the else block is executed.<\/p>\n\n\n\n<div style=\"position: relative; padding-top: 56.22254758418741%;\"><iframe src=\"https:\/\/iframe.mediadelivery.net\/embed\/7259\/b898fac5-e745-4b9f-b02e-05ba4ce73451?autoplay=false&#038;preload=false\" loading=\"lazy\" style=\"border: none; position: absolute; top: 0; height: 100%; width: 100%;\" allow=\"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;\" allowfullscreen=\"true\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In Python decisions are made with if statements also called as selection statement. The if block statements are executed if the conditions are \u2018true\u2019. In case of false condition, the else block is executed.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[380],"tags":[],"class_list":["post-18446","post","type-post","status-publish","format-standard","hentry","category-course"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/posts\/18446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/comments?post=18446"}],"version-history":[{"count":0,"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/posts\/18446\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/media?parent=18446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/categories?post=18446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.askpython.com\/wp-json\/wp\/v2\/tags?post=18446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}