{"id":38713,"date":"2016-10-15T16:04:49","date_gmt":"2016-10-15T21:04:49","guid":{"rendered":"http:\/\/shiannescamilla.wordpress.com\/?p=705"},"modified":"2016-10-15T16:04:49","modified_gmt":"2016-10-15T21:04:49","slug":"another-type-of-loops","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/another-type-of-loops\/","title":{"rendered":"Another type of loops"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/shiannescamilla.wordpress.com\/2016\/10\/15\/another-type-of-loops\/\"><a href=\"https:\/\/shiannescamilla.wordpress.com\">Codebuster<\/a><\/a><\/em><br \/><\/p>\n<p>&#8220;While&#8221;, while incredible is not the only loop out there, it has a cousin named &#8220;for&#8221;. \u00a0For is a function that repeats a block of code the times it is stated, so in &#8220;for&#8221; loops we generally know how many times the block will be repeated, or even just what this number depends on.<\/p>\n<p>A basic example is:<\/p>\n<p><img class=\" size-full wp-image-707 aligncenter\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for.png?w=634\" alt=\"for\" srcset=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for.png 384w, https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for.png?w=150 150w, https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for.png?w=300 300w\" sizes=\"(max-width: 384px) 100vw, 384px\"   \/><\/p>\n<p><img class=\" size-full wp-image-704 aligncenter\" src=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for-thing.png?w=634\" alt=\"for-thing\" srcset=\"https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for-thing.png 547w, https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for-thing.png?w=150 150w, https:\/\/shiannescamilla.files.wordpress.com\/2016\/10\/for-thing.png?w=300 300w\" sizes=\"(max-width: 547px) 100vw, 547px\"   \/><\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/shiannescamilla.wordpress.com\/705\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/shiannescamilla.wordpress.com\/705\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=shiannescamilla.wordpress.com&#038;blog=115353408&%23038;post=705&%23038;subd=shiannescamilla&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Codebuster &#8220;While&#8221;, while incredible is not the only loop out there, it has a cousin named &#8220;for&#8221;. \u00a0For is a function that repeats a block of code the times it is stated, so in &#8220;for&#8221; loops we generally know how many times the block will be repeated, or even just what this &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/another-type-of-loops\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Another type of loops<\/span><\/a><\/p>\n","protected":false},"author":51,"featured_media":707,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[156,33],"class_list":["post-38713","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\/38713","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=38713"}],"version-history":[{"count":13,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38713\/revisions"}],"predecessor-version":[{"id":42993,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38713\/revisions\/42993"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}