I am using a string.split(':')
function so that my list consists of firstname:lastname pairs (e.g. ["John", "Doe", "Alex", "Jacobson" ...]
I know how to use a basic for loop where I would increment the index by two each time (and compare to the length of the list), but I want to take care of it in a more Python specific way.
Are there any cleaner looping constructs I can take which would allow me to consider the first two indices, and then the next two, etc?