{"id":53,"date":"2021-03-11T16:23:11","date_gmt":"2021-03-11T16:23:11","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/?page_id=53"},"modified":"2021-03-26T11:30:03","modified_gmt":"2021-03-26T11:30:03","slug":"calculations","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/reference\/calculations\/","title":{"rendered":"Calculations"},"content":{"rendered":"<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n#Adding up\r\ntotal = number1 + number2\r\n\r\n#Taking Away\r\nremainder = total - cash\r\n\r\n#Multiplying\r\ncentimeteres = inches * 2.54\r\n\r\n#Dividing\r\naverage = total \/ count\r\n\r\n#Powers\r\nareaCube  = width ** 3\r\n\r\n#Modulus (for higher)\r\nangle = angle % 360\r\n<\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#Adding up total = number1 + number2 #Taking Away remainder = total &#8211; cash #Multiplying centimeteres = inches * 2.54 #Dividing average = total \/ count #Powers areaCube = width ** 3 #Modulus (for higher) angle = angle % 360<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":294,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-53","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":5,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/53\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/53\/revisions\/611"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/294"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/media?parent=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}