""" make the turtle walk according to the given character: the character F means the turtle moves forward over a distance of 100 the character R means the turtle turns 45 degrees to the right the character L means the turtle turns 90 degrees to the left the character S means the turtle moves forward over a distance of 100*sqrt(2) the character T means the turtle moves forward over a distance of 100*sqrt(2)/2 """ import math import turtle turtle.speed(11) # 11 is fastest commando = "LFRRFRRFRRFRRRSLTLTLS" length = 100 diagonal = 100 * math.sqrt(2) for i in range(0, len(commando)): character = commando[i] # proceed here with your code... #print("done") turtle.exitonclick()