A loop is, as we learned in class, a sequence of instructions that is repeated until a certain condition is reached. As we have learned, creating long and repeating codes is a huge no-no in the coding world. So, loops allow code to be condensed to prevent what could potentially be long strands of repeating code into just a few lines. Also, loops will quite literally loop the information until the desired outcome is reached. Whenever I think of loops this way, it helps me remember exactly what they are and how they work. How are loops used in the real world? Well, a good example is something as simple as an ATM machine. These machines loop the information until the user prompts that they are completely done with their interaction. Then, that transaction is ended and ready for another user to begin using the machine. All in all, loops are important to know when coding and have been proven to be very useful.
Image link: https://codeburst.io/june-17-2017-switch-case-loops-what-does-the-fox-say-b6676909c36d
Hey, Kayla. I liked how your post is very accessible to the general audience compared to others. It’s easy to understand expanede my knowledge of loops.