Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 917 Bytes

File metadata and controls

33 lines (23 loc) · 917 Bytes

python-points

github action status

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

Install

pip install hexlet-points

Usage example

>>> 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

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.