wfun7 – 'while' loop and functions

Create a function to paint a vertical corridor and return to its starting point. Use the function inside the 'while' loop.

Environments

Environment 1
Environment 2

Constraints

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

Example in Python

from robot import *

task("wfun7")