forfun3 – 'for' loop and functions

Create your own function to paint a square and use it inside the 'for' loop.

Environments

Environment 1

Constraints

  • Robot action commands and calls to your own functions: at most 11
  • User-defined function calls: at least 1
  • Required keywords in solution: for

Example in Python

from robot import *

task("forfun3")