

Some experienced programmers forget how difficult computers and programming can be for beginners. It’s obvious for us to look at the error and resolve it, but for most people it’s pretty arcane. Relevant XKCD
Unfortunately, I think this is also a right of passage of some sorts. If you want to continue programming you will encounter a problem that you can’t ask or find the answer on the internet and you will have to work through it yourself. I’ve had problems I’ve been stuck in for weeks or months. At least for me, it’s always been such a high when I finally solve these. :)















You are misunderstanding what the remainder is.
5 % 2 == 1, because 5 == 2 x 2 + 1
10 % 7 == 3, because 10 == 1 x 7 + 3
Your “edit 2” is mostly correct. I don’t think of it “undoing” the division. But if that makes sense to you then I guess it’s fine