{"id":37142,"date":"2016-08-27T16:26:04","date_gmt":"2016-08-27T21:26:04","guid":{"rendered":"http:\/\/carolinasblogsite.wordpress.com\/?p=300"},"modified":"2016-08-27T16:26:04","modified_gmt":"2016-08-27T21:26:04","slug":"boolean-logic","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/boolean-logic\/","title":{"rendered":"Boolean Logic"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/carolinasblogsite.wordpress.com\/2016\/08\/27\/boolean-logic\/\"><a href=\"https:\/\/carolinasblogsite.wordpress.com\">Carolina&amp;#039;s Blog Site<\/a><\/a><\/em><br \/><\/p>\n<p>&nbsp;<\/p>\n<p>The logic that computers use is called <strong>Boolean<\/strong> logic, so called because it was invented by George Boole way back in the 1800s.<\/p>\n<p>There are two Boolean values: True and False. I know, shocker.<\/p>\n<ul>\n<li>They can be created by comparing values, for example using the equal operator ==, the not equal operator !=, the greater than operator, etc.<\/li>\n<li>Btw, DO NOT confuse assignment (=) with comparison (==).<\/li>\n<li>Python&#8217;s Boolean operators are and, or, and not.\n<ul>\n<li><strong>And<\/strong>: Takes 2 arguments. It evaluates to True if both are True.<\/li>\n<li><strong>Or<\/strong>: Takes 2 arguments. It evaluates to True if either or both are True.<\/li>\n<li><strong>Not<\/strong>: Takes 1 argument, and inverts it. The result of not True is False, and not False goes to True.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Anyway, o<strong>perator precedence<\/strong> is a very important. Python&#8217;s order of operations is the same as that of normal math: Please Excuse My Dear Aunt Sally.<\/p>\n<p>.<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/carolinasblogsite.wordpress.com\/300\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/carolinasblogsite.wordpress.com\/300\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=carolinasblogsite.wordpress.com&#038;blog=115369299&%23038;post=300&%23038;subd=carolinasblogsite&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Carolina&amp;#039;s Blog Site &nbsp; The logic that computers use is called Boolean logic, so called because it was invented by George Boole way back in the 1800s. There are two Boolean values: True and False. I know, shocker. They can be created by comparing values, for example using the equal operator ==, &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/boolean-logic\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Boolean Logic<\/span><\/a><\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[33],"class_list":["post-37142","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","tag-tc101"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37142","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\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=37142"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37142\/revisions"}],"predecessor-version":[{"id":37161,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37142\/revisions\/37161"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=37142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=37142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=37142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}