39
Imagine you are selling chin-chin at the market. If you have 100 customers, would you want to shout the price individually 100 times, or would you rather use a megaphone to repeat the message?
Loops are our digital megaphones. They tell the computer: 'Do this same task until I tell you to stop.' It saves you from writing the same code over and over.
When I started coding in 2007, I realized that lazy programmers are often the best ones because they find ways to make the computer do the hard, repetitive work. Loops are the secret to that efficiency.
Log in to add a comment.