Question: Programming Exercise 7.1 Phython Except the code doesnt work, at least its not what the program is looking for. these are the errors i get...
Programming Exercise 7.1 Phython

Except the code doesnt work, at least its not what the program is looking for. these are the errors i get...

[O Instructions circle.py 1 import turtle 2 import math Define a function drawcircle . This function should expect a Turtle object, the coordinates of the circle's center point, and the shape-tutle.Turtle() 4 5 def drawCircle (): li circle's radius as arguments. The function 6 shape.penup) should draw the specified circle. The algorithm should draw the circle's circumference by turning 3 degrees and moving a given distance 120 times. Calculate the distance moved with the formula 2.0 x x radius 120.0 7shape.setposition(128,75) 8 shape.pendown() 9shape.left(90) 10 for i in rance(1): shape.foward((2*math.pi 100)/120) shape.left(3) Define a function main that will draw a circle with the following parameters when the program is run: 12 13 shape.penup() 14 shape.home() 15 shape.setposition (125,75) 16 shape.pendown 17shape.left(90 18 19 20 def main): 21 drawCircle() X 25 Y = 75 Radius= 100 Grading When you have completed your program, click the Submit button to record your score 23 main() 24
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
