# \[SOLVED\] Antipodes level help :/ (python)

**URL:** <https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500>\
**Category:** Level Help\
**Created:** [March 30, 2022, 5:46pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500 "2022-03-30T17:46:28Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [March 30, 2022, 6:52pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/21 "2022-03-30T18:52:01Z")

</div>

I tried it with only this modification and it worked perfectly fine with the code you posted in the first post

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 6:52pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/22 "2022-03-30T18:52:17Z")

</div>

using a while true loop gives me an infinite loop, do you mean another type of while loop?

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 6:52pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/23 "2022-03-30T18:52:55Z")

</div>

also i dont have a watch with wait

---

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [March 30, 2022, 6:53pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/25 "2022-03-30T18:53:13Z")

</div>

no, it might work in a different while loop, which watch are u using?

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 6:54pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/27 "2022-03-30T18:54:14Z")

</div>

simple wristwatch. i dont have any other watch (it might be because i use codecombat for school and not recreation, we have specific courses we do)

---

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [March 30, 2022, 6:54pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/28 "2022-03-30T18:54:35Z")

</div>

ah i see, hmm, lemme c what methods it has

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 6:55pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/29 "2022-03-30T18:55:34Z")

</div>

using your code gives me an infinite loop and nothing will run (lanto’s code, i mean)

---

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [March 30, 2022, 6:56pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/30 "2022-03-30T18:56:48Z")

</div>

So you can use hero.time in a while loop

so `while hero.time < 7:` do something

this something, let it be the for loop for the archers, and under that code outside the while-loop, keep the one for attacking the warlock

---

<div class="post-metadata">

**Author:** ![Lanto](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Lanto](https://discourse.codecombat.com/u/Lanto)\
**Post date:** [March 30, 2022, 6:57pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/31 "2022-03-30T18:57:53Z")

</div>

If I try it myself without the loop, the archers will never shoot at the warlock.  
I’m now suspecting your version might be different because you are apparently using the classroom version and not the personal version of the site? IDK but it’s quite puzzling  
Can you try my full code:

- edited out because the full code was tried out by the user . \*

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 6:59pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/32 "2022-03-30T18:59:44Z")

</div>

hwo did that work but mine didnt ;-;

---

<div class="post-metadata">

**Author:** ![Lanto](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Lanto](https://discourse.codecombat.com/u/Lanto)\
**Post date:** [March 30, 2022, 7:00pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/33 "2022-03-30T19:00:29Z")

</div>

When you get stuff like Infinite Loop sometimes reloading+resubmitting the level a few times might fix it. I’m not 100% sure about that but I do know CC is pretty buggy and sometimes gives me issues for no clear reasons

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 7:01pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/34 "2022-03-30T19:01:15Z")

</div>

ok gimme a minute to compare the code

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 7:03pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/35 "2022-03-30T19:03:35Z")

</div>

oh you edited it out. well it worked but im not sure why 😕

---

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [March 30, 2022, 7:04pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/36 "2022-03-30T19:04:04Z")

</div>

please try to fix your own code, im sure you can do it, and it will work, because if you cant figure it out now you will have a hard time with the upcoming levels

---

<div class="post-metadata">

**Author:** ![rlly\_bad\_at\_this](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/rlly_bad_at_this/32/28369_2.png) [@rlly\_bad\_at\_this](https://discourse.codecombat.com/u/rlly_bad_at_this)\
**Post date:** [March 30, 2022, 7:06pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/39 "2022-03-30T19:06:18Z")

</div>

so apparently my code with the health portion was hindering it?? idek why, it usually worked in other levels (should i mark lanto’s reply as the solution? im gonna do it i gotta go)

---

<div class="post-metadata">

**Author:** ![Lanto](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Lanto](https://discourse.codecombat.com/u/Lanto)\
**Post date:** [March 30, 2022, 7:09pm UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/40 "2022-03-30T19:09:09Z")

</div>

I’ve never seen any code provided about a health potion. I asked you to post your complete code but I don’t remember anything about a health potion. If you truly post your full code it makes it easier for us to solve 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [March 31, 2022, 7:09am UTC](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500/41 "2022-03-31T07:09:41Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.codecombat.com/t/solved-antipodes-level-help-python/32500.md?page=1)
