Skip to main content

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_x(p)
100
>>> points.get_y(p)
200
>>> points.get_quadrant(p)
1

Project details


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.3.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

hexlet_points-0.3.0-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page