0:00
Hello.
00:01
For problem 37, you want to write a program where you'll ask a user to enter a point, and then you will check whether or not the point is within a rectangle centered on the origin with a width of 100 and a height of 50.
00:17
Then you'll display the point, the rectangle, and a message indicating its location relative to the rectangle.
00:25
So a lot of this is the same as an earlier assignment.
00:31
We will need to use turtle, though.
00:34
So i'll start by importing turtle as t.
00:38
X and y will be equal to the input point from the user.
00:43
We want to draw the triangle.
00:44
So we'll ask turtle to pick up the pen.
00:47
Go to negative 50, negative 25.
00:50
Put the pen down.
00:51
Go to negative 50, 25.
00:53
Go to 50, 25.
00:55
50, negative 25, negative 25, negative 50, negative 25...