Please help with the operator bool and return
There is a task to reach a conditional on the cell wall field, but at what distance is unknown. To help you to have such a function as wall_is_on_the_right(), which returns either True or False.
But as the function to feed the loop, so he knew that is not present False, it is necessary to repeat the cycle?
Below the code body of the function, which I wrote and which does not work, and even below the job
from pyrob.api import *
n = 1
for i in range (n):
x = wall_is_on_the_right()
n += 1
if __name__ == '__main__':
If anything, the job itself is here cs.mipt.ru/python/lessons/lab1.html