{"id":37335,"date":"2016-08-31T14:06:15","date_gmt":"2016-08-31T19:06:15","guid":{"rendered":"http:\/\/shiannescamilla.wordpress.com\/?p=464"},"modified":"2016-08-31T14:06:15","modified_gmt":"2016-08-31T19:06:15","slug":"basic-input","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/basic-input\/","title":{"rendered":"Basic input"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/shiannescamilla.wordpress.com\/2016\/08\/31\/basic-input\/\"><a href=\"https:\/\/shiannescamilla.wordpress.com\">Codebuster<\/a><\/a><\/em><br \/><\/p>\n<p>For us, input can mean something someone else says, and\u00a0in coding\u00a0it is not so different.\u00a0Input is a way to interact with the uer by asking them to assign a value to something.<\/p>\n<p>There can be different kinds of input according to the variable it\u00a0will store, which can be integers, floats, simple string or so on. You can define what kind of input your user will introduce by defining it when you are writting a code, as follows:<\/p>\n<p><img class=\"alignnone size-full wp-image-466\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/08\/inputatom.png?w=634\" alt=\"inputatom.PNG\"   \/><img class=\" size-full wp-image-468 aligncenter\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/08\/inputcygwin.png?w=634\" alt=\"inputcygwin\"   \/><\/p>\n<p>Likewise, if you are going to be using decimals you can\u00a0specify it by using float<\/p>\n<p><img class=\"alignnone size-full wp-image-469\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/08\/input2atom.png?w=634\" alt=\"input2atom.PNG\"   \/><img class=\" size-full wp-image-471 aligncenter\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/09\/input2cyg.png?w=634\" alt=\"input2cyg\"   \/><\/p>\n<p>Regardless, for basic handling of the input, like printing it, you can simply write it as<\/p>\n<blockquote><p>variable= input(&#8220;Whatever you want to put&#8221;)<\/p><\/blockquote>\n<p><img class=\"aligncenter size-full wp-image-490\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/09\/thats-all-folks.gif?w=634\" alt=\"thats all folks.gif\"   \/><\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/shiannescamilla.wordpress.com\/464\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/shiannescamilla.wordpress.com\/464\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=shiannescamilla.wordpress.com&#038;blog=115353408&%23038;post=464&%23038;subd=shiannescamilla&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Codebuster For us, input can mean something someone else says, and\u00a0in coding\u00a0it is not so different.\u00a0Input is a way to interact with the uer by asking them to assign a value to something. There can be different kinds of input according to the variable it\u00a0will store, which can be integers, floats, simple &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/basic-input\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Basic input<\/span><\/a><\/p>\n","protected":false},"author":51,"featured_media":466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[156,33],"class_list":["post-37335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-programming-basics","tag-tc101"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37335","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\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=37335"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37335\/revisions"}],"predecessor-version":[{"id":38664,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37335\/revisions\/38664"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=37335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=37335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=37335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}