Question: help me do this python program Question 11A (10 points) Write a function named drawSquare. The function draw Square takes two parameters: . a turtle,
Question 11A (10 points) Write a function named drawSquare. The function draw Square takes two parameters: . a turtle, t an integer, length, that is the length of a side of the square. The function drawSquare should use the parameter t to draw the square. Do not make any assumptions about the initial up/down state of the turtle, its position on the screen or its orientation. The function drawSquare should begin drawing with the turtle at its initial position and orientation. When drawSquare returns, the turtle should again be in its initial position and orientation. You must use a loop for repeated operations. Question 11B (10 points) Write a function named drawSquares that calls drawSquare to draw a specified number of squares. The function drawSquares takes four parameters: . a turtlet an integer size an integer num, the number of equal signs to draw an integer angle, the clockwise rotation between successive squares (Hint: you do not need to import the turtle module or create a screen and turtle. That would have to have been done before drawSquares is called.) For example, the following would be correct output. import turtle S = turtle. Screen() snapper = turtle. Turtle drawSquares(snapper, 100, 4, 20)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
