https://github.com/hexlet-components/python-points
A SICP'ish Points implemented in Python using hexlet-pairs.
https://github.com/hexlet-components/python-points
python3 sicp typed-python
Last synced: about 2 months ago
JSON representation
A SICP'ish Points implemented in Python using hexlet-pairs.
- Host: GitHub
- URL: https://github.com/hexlet-components/python-points
- Owner: hexlet-components
- License: isc
- Created: 2019-07-24T13:04:40.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-06T15:00:55.000Z (about 1 year ago)
- Last Synced: 2025-08-20T00:22:51.784Z (7 months ago)
- Topics: python3, sicp, typed-python
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-points
[](https://github.com/hexlet-components/python-points/actions)
A SICP'ish Points implemented in Python using hexlet-pairs.
## Install
```shell
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
---
[](https://hexlet.io?utm_source=github&utm_medium=link&utm_campaign=python-points)
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io?utm_source=github&utm_medium=link&utm_campaign=python-points).
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).