{"id":6,"date":"2021-03-11T15:26:08","date_gmt":"2021-03-11T15:26:08","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/?page_id=6"},"modified":"2021-03-17T13:11:59","modified_gmt":"2021-03-17T13:11:59","slug":"asking-questions-from-user","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/nat4\/asking-questions-from-user\/","title":{"rendered":"Asking Questions from User"},"content":{"rendered":"<h2>Strings<\/h2>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# \r\nname = input('Enter name:')\r\n \r\nroom = input('What room are you in:')\r\n#\r\n<\/pre>\n<h2>Integers (whole numbers)<\/h2>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n#\r\nseats = int(input('Enter number of seats:'))\r\n \r\npupils = int(input('Enter number of pupils:'))\r\n# \r\n<\/pre>\n<h2>Floating Point (decimal numbers)<\/h2>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# \r\nheightMetres = float(input('Enter your height in metres:'))\r\n \r\nprice = float(input('Enter price:'))\r\n# \r\n<\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Strings # name = input(&#8216;Enter name:&#8217;) room = input(&#8216;What room are you in:&#8217;) # Integers (whole numbers) # seats = int(input(&#8216;Enter number of seats:&#8217;)) pupils = int(input(&#8216;Enter number of pupils:&#8217;)) # Floating Point (decimal numbers) # heightMetres = float(input(&#8216;Enter your height in metres:&#8217;)) price = float(input(&#8216;Enter price:&#8217;)) #<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":297,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/6","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=6"}],"version-history":[{"count":9,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/6\/revisions"}],"predecessor-version":[{"id":465,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/6\/revisions\/465"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/pages\/297"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputingpython\/wp-json\/wp\/v2\/media?parent=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}