Question: File: circle.py Project 7 . 1 Draws a circle. 1 . The inputs are the coordinates of the center point and the
File: circle.py
Project
Draws a circle.
The inputs are the coordinates of the center point and the radius.
import math
from turtle import Turtle
def drawcirclet x y radius:
Draws a circle with the given center point and radius."""
tpenup
tgotox y radius
tsetheading
tpendown
distance math.pi radius
for in range:
tforwarddistance
tleft
def main:
x
y
radius
drawcircleTurtle x y radius
if namemain:
main
What is wrong with this code?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
