I'm trying to convert the function below to the lambda function. And this function below has some functions that need to be executed in order. I searched many times, but there aren't have any clues. What I trying to convert is
def drawSquare(moveLength):
A_Turtle.right(90)
moveAndturn(moveLength)
for n in range(6):
A_Turtle.forward(moveLength)
A_Turtle.left(90)
and this is what I do so far.
moveAndturn = lambda moveLength : [A_Turtle.forward(moveLength) A_Turtle.left(90) for n in range(6)]