# For some reason my task 3 wont pass

**URL:** <https://get-help.theconstruct.ai/t/for-some-reason-my-task-3-wont-pass/14773>\
**Category:** Python Basics For Robotics\
**Tags:** python3, final-exam, ros\
**Created:** [January 15, 2022, 7:21am UTC](https://get-help.theconstruct.ai/t/for-some-reason-my-task-3-wont-pass/14773 "2022-01-15T07:21:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ralves](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/ralves/32/7039_2.png) [@ralves](https://get-help.theconstruct.ai/u/ralves)\
**Post date:** [January 17, 2022, 5:10pm UTC](https://get-help.theconstruct.ai/t/for-some-reason-my-task-3-wont-pass/14773/5 "2022-01-17T17:10:46Z")

</div>

Hi @thunderbootyclap ,

The problem with your script is the same that happened with other student pointed below.

Please follow the link below to better understand the explanation.

> [@Problems with task 1 and task 3](https://get-help.robotigniteacademy.com/t/problems-with-task-1-and-task-3/14521/8):
>
> Hi @ghduarte the possible reason why your script is failing is that what you are doing is: You are moving forward only when there are walls on both sides But what you have to do is: Keep moving until there are no walls detected on both sides. Your current script stops as soon as it passes the robot’s left wall, but the robot at this point has not yet gone through the robot’s right wall. Please check the expected behavior in the image below to understand what I mean here: [task3-The-Const…

---

_[View the full topic](https://get-help.theconstruct.ai/t/for-some-reason-my-task-3-wont-pass/14773)._
