# Savern savior level help

**URL:** <https://discourse.codecombat.com/t/savern-savior-level-help/20965>\
**Category:** Level Help\
**Created:** [April 13, 2020, 3:12pm UTC](https://discourse.codecombat.com/t/savern-savior-level-help/20965 "2020-04-13T15:12:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZAX155](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/zax155/32/34141_2.png) [@ZAX155](https://discourse.codecombat.com/u/ZAX155)\
**Post date:** [April 13, 2020, 3:12pm UTC](https://discourse.codecombat.com/t/savern-savior-level-help/20965/1 "2020-04-13T15:12:18Z")

</div>

@Deadpool198 @dedreous @Code_Kid13

```python
# An ARRAY is a list of items.

# This array is a list of your friends' names.
friendNames = ['Joan', 'Ronan', 'Nikita', 'Augustus']

# Array indices start at 0, not 1!
friendIndex = 0

# Loop over each name in the array.
# The len() function gets the length of the list.
while friendIndex < len(friendNames):
    # Use square brackets to get a name from the array.
    friendName = friendNames[friendIndex]
    
    # Tell your friend to go home.
    # Use + to connect two strings.
    hero.say(friendName + ', go home!')
    friendName = friendNames[friendIndex]
    hero.say(friendName + ', go home!')
    friendName = friendNames[friendIndex]
    hero.say(friendName + ', go home!')
    friendName = friendNames[friendIndex]
    hero.say(friendName + ', go home!')

    
# Retreat to the oasis and build a "fence" on the X.
hero.buildXY("fence", 30, 30)
hero.moveXY(8, 30)

```

---

<div class="post-metadata">

**Author:** ![Deadpool198](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/deadpool198/32/16753_2.png) [@Deadpool198](https://discourse.codecombat.com/u/Deadpool198)\
**Post date:** [April 13, 2020, 6:48pm UTC](https://discourse.codecombat.com/t/savern-savior-level-help/20965/2 "2020-04-13T18:48:08Z")

</div>

Because you’re not incrementing friendIndex you’re always telling the same friend to go home.  
You only need to tell the friend to go home once, then you loop around and use the friendIndex to loop through the list of friends.

---

<div class="post-metadata">

**Author:** ![ZAX155](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/zax155/32/34141_2.png) [@ZAX155](https://discourse.codecombat.com/u/ZAX155)\
**Post date:** [April 13, 2020, 8:01pm UTC](https://discourse.codecombat.com/t/savern-savior-level-help/20965/3 "2020-04-13T20:01:29Z")

</div>

i solved it @Deadpool198  
Zax
