Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12658,7 +12658,7 @@ \section{Exercises}

Write a definition for a class named {\tt Circle} with attributes
{\tt center} and {\tt radius}, where {\tt center} is a Point object
and radius is a number.
and {\tt radius} is a number.

Instantiate a Circle object that represents a circle with its center
at $(150, 100)$ and radius 75.
Expand All @@ -12673,8 +12673,8 @@ \section{Exercises}

Write a function named \verb"rect_circle_overlap" that takes a Circle
and a Rectangle and returns True if any of the corners of the Rectangle fall
inside the circle. Or as a more challenging version, return True if
any part of the Rectangle falls inside the circle.
inside the Circle. Or as a more challenging version, return True if
any part of the Rectangle falls inside the Circle.

Solution: \url{http://thinkpython2.com/code/Circle.py}.

Expand Down