CSCI 150 - Foundations of Computer Science
Spring 2013
Programming Exercises: Chapter 8, part 2
Add implementations of
__sub__()
and
__truediv__()
to the
Point
class.
Implement the
Segment
class (exercise 8.26).
Implement the
Pseudorandom
class (exercise 8.36).
Add the
__repr__()
and
__eq__()
methods to these two classes.