Newbie Question
January 14, 2020
We have something different today.
Although most of my readers are accomplished, savvy programmers, (or at least those who are confident enough to comment) I will always include content designed for beginners; it’s part of the DNA of the blog, and sometimes brings in new readers. Thus, I spend a lot of time in beginner-programmer online forums. Today’s question at Reddit caught my eye:
Newbie question: What’s the difference between a “loop” and a “function”?
Sorry if this is answered somewhere but I am completely new to programming.
What is the difference between a function and a loop, when both of them can be used more than once?
The posting history of the person who asked that question indicates that he has recently been expelled from college (his GPA wasn’t great) and that
In the meantime I just started a computer programming course online. Was never really interested in it but everyone says it’s a skill you should have so I figured I’ll give it a shot. Plus it’s free so there’s that.
Your task is to answer the newbie question; if you answer on Reddit, please also leave your answer here, with a pointer to your Reddit posting. When you are finished, you are welcome to read my answer or discuss the exercise in the comments below.