00:01
This problem is asking us to prompt the user for some input about the center of the circle.
00:07
And then we're going to do some math to find the area of the circle.
00:12
And finally, we're going to draw it.
00:15
So let's look at one method to do that.
00:18
Take a look up here.
00:20
I'm talking about using the center coordinates to find the bottom of the circle.
00:24
We need to find the bottom of the circle to start drawing it.
00:27
So we'll do that later.
00:29
But first, let's import our turtle.
00:33
To say turtle dot done down here at the bottom so we don't forget we prompt our user for some input values i want to prompt the user to input the center coordinates and the radius of the circle now that we've got those coordinates and the radius we can do some math computer area we're going to do that by creating a constant named pi and then creating a variable called area where we can use the formula pi times the radius squared, just like that.
01:20
So now we have our area.
01:22
We're ready to draw our circle.
01:25
The turtle always draws starting at the bottom.
01:33
So right here, if we were to go to this coordinate, that would take us to the center of the circle.
01:38
I want to start drawing at the bottom of the circle, so i'm going to take our y coordinates and go below the center by saying minus radius.
01:51
Now we're ready to draw...