# Hunting Party help (python)

**URL:** <https://discourse.codecombat.com/t/hunting-party-help-python/24021>\
**Category:** Level Help\
**Created:** [September 10, 2020, 3:05pm UTC](https://discourse.codecombat.com/t/hunting-party-help-python/24021 "2020-09-10T15:05:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GraySkayl007](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/grayskayl007/32/14563_2.png) [@GraySkayl007](https://discourse.codecombat.com/u/GraySkayl007)\
**Post date:** [September 10, 2020, 3:05pm UTC](https://discourse.codecombat.com/t/hunting-party-help-python/24021/1 "2020-09-10T15:05:47Z")

</div>

I am kinda stuck on the level Hunting Party. Here is my code:

```python
# You can use findNearestEnemy() on your soldiers to get their nearest enemy instead of yours.
while True:
    friends = hero.findFriends()
    # Use for-loop and for each friend:
    for friend in friends:
        # If they see an enemy then command to attack.
        enemy = friend.findNearestEnemy()
        if enemy:
            hero.command(friend, "attack", enemy)
        # Command to move east by small steps.
        else:
            hero.command(friend, "move", {'x' friend.pos.x + 1, 'y' = friend.pos.y})

```

This is what I am confused about.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/9/9046b6a6ee943b5790f8636ea272243666e6eeee.png)  
The error isn’t for any specific line, it’s just there, and I don’t know what it means. Please help.

---

<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:** [September 10, 2020, 3:27pm UTC](https://discourse.codecombat.com/t/hunting-party-help-python/24021/2 "2020-09-10T15:27:59Z")

</div>

A set is a bit like an array, it’s referring to the section where you tell your friend where to go. After the ‘x’ and the ‘y’ you need a : and you need to remove the =.  
Danny
