{"id":37654,"date":"2016-09-12T10:37:56","date_gmt":"2016-09-12T15:37:56","guid":{"rendered":"http:\/\/rodrigomerinos.wordpress.com\/?p=352"},"modified":"2016-09-12T10:37:56","modified_gmt":"2016-09-12T15:37:56","slug":"pifthon-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/pifthon-2\/","title":{"rendered":"pIFthon"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/rodrigomerinos.wordpress.com\/2016\/09\/12\/pifthon\/\"><a href=\"https:\/\/rodrigomerinos.wordpress.com\">M E R I N O<\/a><\/a><\/em><br \/><\/p>\n<p><strong>If statement:<\/strong><\/p>\n<p>The If statement is a conditional statement and works like this. If a value is true then the instruction stop and the code continues, but if the value is false, the code read the next line on the IF.<\/p>\n<p><img class=\"alignnone size-full wp-image-370\" src=\"https:\/\/rodrigomerinos.files.wordpress.com\/2016\/09\/loop_architecture.jpg?w=736\" alt=\"loop_architecture.jpg\"   \/><\/p>\n<p>&nbsp;<\/p>\n<p>The syntaxis is like this:<\/p>\n<p>if expression:<br \/>\n&lt;body&gt;<br \/>\nelse:<br \/>\n&lt;body&gt;<\/p>\n<p>Here is an example:<\/p>\n<p><img class=\"alignnone size-full wp-image-364\" src=\"https:\/\/rodrigomerinos.files.wordpress.com\/2016\/09\/captura-de-pantalla-2016-09-12-a-las-10-25-02.png?w=736\" alt=\"Captura de pantalla 2016-09-12 a la(s) 10.25.02.png\"   \/><\/p>\n<p><img class=\"alignnone size-full wp-image-365\" src=\"https:\/\/rodrigomerinos.files.wordpress.com\/2016\/09\/captura-de-pantalla-2016-09-12-a-las-10-25-28.png?w=736\" alt=\"Captura de pantalla 2016-09-12 a la(s) 10.25.28.png\"   \/><\/p>\n<p>For more details about IF and ELSE you can go to <a href=\"https:\/\/www.tutorialspoint.com\/python3\/python_loops.htm\">here<\/a> and <a href=\"http:\/\/www.programiz.com\/python-programming\/if-elif-else\">here.<\/a>\u00a0And also check this <a href=\"https:\/\/101fortec.wordpress.com\/2016\/09\/12\/fruit-loops\/\">blog<\/a> for more loops wohoo.<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/rodrigomerinos.wordpress.com\/352\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/rodrigomerinos.wordpress.com\/352\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=rodrigomerinos.wordpress.com&#038;blog=115217129&%23038;post=352&%23038;subd=rodrigomerinos&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at M E R I N O If statement: The If statement is a conditional statement and works like this. If a value is true then the instruction stop and the code continues, but if the value is false, the code read the next line on the IF. &nbsp; The syntaxis is like &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/pifthon-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">pIFthon<\/span><\/a><\/p>\n","protected":false},"author":46,"featured_media":370,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[124,24],"class_list":["post-37654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-code","tag-python"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=37654"}],"version-history":[{"count":6,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37654\/revisions"}],"predecessor-version":[{"id":42171,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37654\/revisions\/42171"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=37654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=37654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=37654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}