An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# python-points

[![github action status](https://github.com/hexlet-components/python-points/workflows/Python%20CI/badge.svg)](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

---

[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](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/).