Table of Contents
Make-a-Square (1)
Example Description
The example demonstrates how to make a square with Quarky robot.

Code

sprite = Sprite('Tobi')
quarky = Quarky()

# imported modules
import time

for i in range(0, 4):
  quarky.runrobot("FORWARD", 100)
  time.sleep(1)
  quarky.stoprobot()
  quarky.runrobot("LEFT", 100)
  time.sleep(1.2)
  quarky.stoprobot()

Output

Make a Square