0
Functions, methods, figuring out how it works
There is probably a thread for this already, but this is where I struggle the most. I’ve read and tried and still can’t connect the dots in my head. That’s and how to structure a program, but let’s start with baby steps. Any advice?
1 ответ
+ 2
Imagine you do a set of statements many times at different places. Then you put those statements into a function, so you don't have to repeat the same code many times, instead you just put the function call.
It also makes your code readable, because you give a name to a part of code.