{"id":1530,"date":"2017-03-03T15:12:21","date_gmt":"2017-03-03T15:12:21","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=1530"},"modified":"2017-03-03T15:13:58","modified_gmt":"2017-03-03T15:13:58","slug":"test-post-python-code","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2017\/03\/03\/test-post-python-code\/","title":{"rendered":"Test Post &#8211; Python Code"},"content":{"rendered":"<p>Using &lt;pre \/&gt;<\/p>\n<pre>print(\"Please enter your name\")\r\nname = input()\r\nif name == \"Bob\":\r\n    print(\"Hello \" + name)\r\nelse:\r\n    print(\"Sorry only bob allowed \" + name)\r\n<\/pre>\n<p>Using Plugin :)<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nprint(&quot;Please enter your name&quot;)\r\nname = input()\r\nif name == &quot;Bob&quot;:\r\n    print(&quot;Hello &quot; + name)\r\nelse:\r\n    print(&quot;Sorry only bob allowed &quot; + name)\r\n<\/pre>\n<p>What line contains the conditional statement? You can see the answer below.<\/p>\n<pre class=\"brush: python; collapse: true; highlight: [3]; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\nprint(&quot;Please enter your name&quot;)\r\nname = input()\r\nif name == &quot;Bob&quot;:\r\n    print(&quot;Hello &quot; + name)\r\nelse:\r\n    print(&quot;Sorry only bob allowed &quot; + name)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Using &lt;pre \/&gt; print(&#8220;Please enter your name&#8221;) name = input() if name == &#8220;Bob&#8221;: print(&#8220;Hello &#8221; + name) else: print(&#8220;Sorry only bob allowed &#8221; + name) Using Plugin :) print(&quot;Please enter your name&quot;) name = input() if name == &quot;Bob&quot;: print(&quot;Hello &quot; + name) else: print(&quot;Sorry only bob allowed &quot; + name) What line contains &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1342,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_featured_media_url":"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/06\/Python-logo-notext.svg_.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/comments?post=1530"}],"version-history":[{"count":7,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1530\/revisions"}],"predecessor-version":[{"id":1537,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1530\/revisions\/1537"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media\/1342"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=1530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=1530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=1530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}