from mirobot import Mirobot

mirobot = Mirobot()

def draw_square():
    for i in range(4):
        mirobot.forward(100)
        mirobot.right(90)
        
draw_square()

Controlling Mirobot with Javascript

Use these simple commands to get started controlling Mirobot: