hexlet-points

A SICP'ish Points implemented in Python using hexlet-pairs


Keywords
python3, sicp, typed-python
License
ISC
Install
pip install hexlet-points==0.3.0

Documentation

hexlet-points

A SICP'ish Points implemented in Python using hexlet-pairs.

Usage

>>> from hexlet import points
>>> p = points.make(100, 200)
>>> print(points.to_string(p))
(100, 200)
>>> points.get_quadrant(p)
1
>>> points.get_x(p)
100
>>> points.get_y(p)
200