wfun9 – 'while' loop and functions

These are the same vertical corridors as before, with the only difference being that each subsequent one starts one cell below the previous one.

Environments

Environment 1
Environment 2

Constraints

  • Robot action commands and calls to your own functions: at most 9
  • User-defined function calls: at least 1

Example in Python

from robot import *

task("wfun9")