Pint
This code make all kind of units available as UNITS.unit:
import pint
UNITS = pint.UnitRegistry()
Quantity = UNITS.Quantity
You can specify formulas with units.
The formula for gravity acceleration:
meter = UNITS.meter
second = UNITS.second
acc = 9.8 * meter / second ** 2
time = 9 * second
speed = acc * time
print(speed)
Output:
88.2 meter / second