{"id":4153,"date":"2023-03-02T20:28:14","date_gmt":"2023-03-03T01:28:14","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4153"},"modified":"2023-03-02T20:28:14","modified_gmt":"2023-03-03T01:28:14","slug":"loops-and-more-loops-6b","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/loops-and-more-loops-6b\/","title":{"rendered":"Loops and more Loops! &#8211; 6b"},"content":{"rendered":"<p>If you were writing code and wanted to repeat a certain code without writing it out over and over again, what would help you with that? This is where the loop comes in. To simple it down, a loop is just a set of instructions repeating until a certain condition is reached. Loops are great in executing code over and over and saving time for the coder that now does not have to rewrite the code. There are multiple different versions of the loop, there is the for loop, while loop, and the do while loop. A for loop consists of 3 parts, the keyword starting the loop, the condition being tested, and the end keyword terminating the loop. When an user wants to run a loop that will continue to operate until a condition is true, a while loop would be perfect. A do while loop is similar to a while loop, instead here a condition will run first, then the condition will be checked if true. A while loop will always check if the condition is true before running but a do while loop will run the condition the first time, then it will check if the condition is true, Loops all around are a great way for programmers to save time and make their code look cleaner and run more efficiently.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you were writing code and wanted to repeat a certain code without writing it out over and over again, what would help you with that? This is where the loop comes in. To simple it down, a loop is just a set of instructions repeating until a certain condition is reached. Loops are great [&hellip;]<\/p>\n","protected":false},"author":29379,"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-4153","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\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/users\/29379"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4153"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4153\/revisions"}],"predecessor-version":[{"id":4172,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4153\/revisions\/4172"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}