Sarven Savior Help

I don’t even know where to start on this one. There is a lot of new coding things like len() and I have just no idea how to do it. Can anyone help get me started on this level?
Thanks ~Chase

Really, all you need to do is add one to friendIndex every time you tell a soldier to go home, then build a fence. What, exactly, are you having trouble with?

I just didn’t understand how to start, but that helps to understand. Thank You!

what you need to do is loop over an array and tell all of your friends to go home individually