MCPcopy Create free account
hub / github.com/geekcomputers/Python / compass_code.py

File compass_code.py

compass_code.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def degree_to_direction(deg):
2 directions = ["N", "NE", "E", "SE", "S", "SW", "W", "NW"]
3
4 deg = deg % 360

Callers

nothing calls this directly

Calls 1

degree_to_directionFunction · 0.85

Tested by

no test coverage detected