A SICP'ish Points implemented in Python using hexlet-pairs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hexlet-points-0.1.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for hexlet_points-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d86705da121fb1950757087d077ea06592e73a6c07e6f1de4239c3af026e86a |
|
MD5 | 3abb0456a743d88ba9af5beed493f20a |
|
BLAKE2b-256 | 1a53444be5f4fe07ff49250cfb2b6d24108c842303c6ebdae37296280488f086 |