if8 – 'if' statement

Paint the cell on the left if there is a wall on the left, and the cell on the right if there is a wall on the right.

Environments

Environment 1
Environment 2
Environment 3
Environment 4

Constraints

  • Required keywords in solution: if
  • Forbidden keywords in solution: while

Example in Python

from robot import *

task("if8")