# Timber Guard help for python

**URL:** <https://discourse.codecombat.com/t/timber-guard-help-for-python/19609>\
**Category:** Level Help\
**Created:** [November 12, 2019, 1:08pm UTC](https://discourse.codecombat.com/t/timber-guard-help-for-python/19609 "2019-11-12T13:08:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![brooksy125](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/brooksy125/32/9966_2.png) [@brooksy125](https://discourse.codecombat.com/u/brooksy125)\
**Post date:** [November 12, 2019, 2:48pm UTC](https://discourse.codecombat.com/t/timber-guard-help-for-python/19609/3 "2019-11-12T14:48:26Z")

</div>

You can’t add a argument in the `findFriends()` method. You can find the friend type by using a different method, `hero.findByType("soldier",hero.findFriends())`

```python
soldier= hero.findFriends("soldier") # this method only returns a list of all friends

```

This line of code isn’t really needed since you are calling the `findFriends()` in the for loop. Also, I see that you are not collecting the coin after you find it.

Keep in mind that in the for loop, the variable is friend and not soldier when you command them.

One last piece, the move command needs an “object” not just the numbers, like `{"x": 84, "y": 45}`  
A little trick, put your cursor where you want to enter the position in your code and then use your mouse on the map to shows the coordinates you want; hold down Shift and left click the mouse. It will drop those coordinates into your code.

---

_[View the full topic](https://discourse.codecombat.com/t/timber-guard-help-for-python/19609)._
