{"id":874,"date":"2015-08-27T14:09:14","date_gmt":"2015-08-27T14:09:14","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=874"},"modified":"2015-08-27T14:09:14","modified_gmt":"2015-08-27T14:09:14","slug":"python-print","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2015\/08\/27\/python-print\/","title":{"rendered":"Python &#8211; print()"},"content":{"rendered":"<p>The print() function displays a string to the screen. It can be used like this.<\/p>\n<ul>\n<li>print(&#8220;hello there&#8221;) \u2013 displays hello there<\/li>\n<li>print(4*4) \u2013 displays 16<\/li>\n<li>print(&#8220;4*4&#8221;) \u2013 displays 4*4<\/li>\n<\/ul>\n<p>Note that the last line has quotes around the calculation causing the string to be displayed.<\/p>\n<p>You can use either a single quote &#8216; or double quotes &#8221; within the brackets. More on this later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The print() function displays a string to the screen. It can be used like this. print(&#8220;hello there&#8221;) \u2013 displays hello there print(4*4) \u2013 displays 16 print(&#8220;4*4&#8221;) \u2013 displays 4*4 Note that the last line has quotes around the calculation causing the string to be displayed. You can use either a single quote &#8216; or double &hellip;<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17939,17932],"tags":[125716,125715,9199],"class_list":["post-874","post","type-post","status-publish","format-standard","hentry","category-coding","category-computational-constructs","tag-print","tag-python","tag-string"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/874","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=874"}],"version-history":[{"count":1,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/874\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}