WillRegex@lemm.eetoProgramming@programming.dev•need help with some fundamentals of for loops. it looks like im so close to fully grasping grabbing an item out of a list, but not quite. examples belowEnglish
6·
1 year agoI think you’re misunderstanding the insert
method. insert
keeps everything that was already in the list, including the item at the given index. it just shifts part of it to the right to make room for the thing you’re inserting. Directly changing the list using display[position] = letter
instead replaces the item at the index with letter
.
Does that make sense?
You’re overthinking this. You can almost always get by with whatever system you already have available, until you get a full job, at which point the job will probably provide you with a machine.