{"id":39034,"date":"2016-11-23T07:27:27","date_gmt":"2016-11-23T13:27:27","guid":{"rendered":"http:\/\/edalitablog.wordpress.com\/?p=581"},"modified":"2016-11-23T07:27:27","modified_gmt":"2016-11-23T13:27:27","slug":"use-of-range-in-pytho","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/use-of-range-in-pytho\/","title":{"rendered":"Use of Range in Pytho"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/edalitablog.wordpress.com\/2016\/11\/23\/use-of-range-in-pytho\/\"><a href=\"https:\/\/edalitablog.wordpress.com\">Ed_Alita<\/a><\/a><\/em><br \/><\/p>\n<p><a class=\"quuv-DXgx1bDAVbujXFOD\" style=\"width:248px;height:265px;\" href=\"http:\/\/giphy.com\/gifs\/fpXxIjftmkk9y\"><img class=\"_3QcZOBs-_0PFoUjz21NMOt aligncenter\" src=\"https:\/\/media1.giphy.com\/media\/fpXxIjftmkk9y\/200w.gif#4\" width=\"248\" height=\"265\" \/><\/a><\/p>\n<h2>Don&#8217;t be scared by the word there are easy as pie<\/h2>\n<p>Let&#8217;s see that you want to print all number between 1 and 5; therefore you need a range. But let me tall you a little secret in range it only takes until the number you tell it but do not\u00a0 take the actual number in consideration. Let&#8217;s see an example:<\/p>\n<p><img class=\"alignnone size-full wp-image-589\" src=\"https:\/\/edalitablog.files.wordpress.com\/2016\/11\/range1.gif?w=748\" alt=\"range1\"   \/> In this the 5 willnot be printed.<\/p>\n<p>The actual result of this code is the next one:<\/p>\n<p><img class=\"alignnone size-full wp-image-590\" src=\"https:\/\/edalitablog.files.wordpress.com\/2016\/11\/range2.gif?w=748\" alt=\"range2\"   \/><\/p>\n<p>Now lets see a more complex range with two variables:<\/p>\n<p><img class=\"alignnone size-full wp-image-596\" src=\"https:\/\/edalitablog.files.wordpress.com\/2016\/11\/range3.gif?w=748\" alt=\"range3\"   \/><\/p>\n<p>in this case the result will be:<\/p>\n<p><img class=\"alignnone size-full wp-image-597\" src=\"https:\/\/edalitablog.files.wordpress.com\/2016\/11\/range4.gif?w=748\" alt=\"range4\"   \/><\/p>\n<p>If you want to see more info in the next link:<\/p>\n<p><a href=\"http:\/\/pythoncentral.io\/pythons-range-function-explained\/\" rel=\"nofollow\">http:\/\/pythoncentral.io\/pythons-range-function-explained\/<\/a><\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/edalitablog.wordpress.com\/581\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/edalitablog.wordpress.com\/581\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=edalitablog.wordpress.com&#038;blog=115122805&%23038;post=581&%23038;subd=edalitablog&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Ed_Alita Don&#8217;t be scared by the word there are easy as pie Let&#8217;s see that you want to print all number between 1 and 5; therefore you need a range. But let me tall you a little secret in range it only takes until the number you tell it but do not\u00a0 &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/use-of-range-in-pytho\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Use of Range in Pytho<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":589,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[78,24],"class_list":["post-39034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-basic","tag-python"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/39034","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=39034"}],"version-history":[{"count":6,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/39034\/revisions"}],"predecessor-version":[{"id":42184,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/39034\/revisions\/42184"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=39034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=39034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=39034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}