{"id":2596,"date":"2022-06-14T16:19:30","date_gmt":"2022-06-14T20:19:30","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/?p=2596"},"modified":"2022-06-14T16:19:30","modified_gmt":"2022-06-14T20:19:30","slug":"why-do-we-use-loops","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/2022\/06\/14\/why-do-we-use-loops\/","title":{"rendered":"Why do we use loops?"},"content":{"rendered":"<p><span style=\"color: #0000ff\"><strong>Loops<\/strong><\/span> are sequences of instructions that are repeated until a certain condition is reached. They are used in programming in order to repeat a block of code. Loops continue to run until the defined condition returns false. When programmers write code, loops allow them to shorten their lines of code, meaning, they are able to write a code once and repeat it as many times as they need it. Loops allow coding to be both more manageable and organized.\u00a0<\/p>\n<p><span style=\"color: #0000ff\"><strong>Why are loops important?<\/strong><\/span><\/p>\n<ul>\n<li>When it comes to programming, loops are able to execute tasks faster. Because loops shorten the length of the lines of code, without the loop structure, it is nearly impossible for tasks to be performed.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2597 aligncenter\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/Loop1-300x139.png\" alt=\"\" width=\"449\" height=\"208\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/Loop1-300x139.png 300w, https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/Loop1-768x355.png 768w, https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/Loop1.png 800w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Loops are sequences of instructions that are repeated until a certain condition is reached. They are used in programming in order to repeat a block of code. Loops continue to run until the defined condition returns false. When programmers write code, loops allow them to shorten their lines of code, meaning, they are able to [&hellip;]<\/p>\n","protected":false},"author":28307,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[663943],"tags":[],"class_list":{"0":"post-2596","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-instructor","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/users\/28307"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/comments?post=2596"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2596\/revisions"}],"predecessor-version":[{"id":2598,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2596\/revisions\/2598"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/media?parent=2596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/categories?post=2596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/tags?post=2596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}