Hello class,
Loops are very important when it comes to coding. Loops makes programing easy because the same code can run over and over again with different values every time. There are many types of loops. In class, we learned about “for” loops which run codes as many times as a condition is true. We also learned about “while” loops which will run codes while certain conditions are true. It is very important to remember that sometimes we need to initiate values before these loops are executed. Finally, loops have to have a final expression which will be executed if all other conditions failed. We can also specify the number of times loops can run.
Leave a Reply
You must be logged in to post a comment.