...

/

Conclusion for Units and GUIs

Conclusion for Units and GUIs

Concluding remarks for GUIs and unit conversion.

We'll cover the following...

Units are important, but they are also tedious to keep track of. Pint is a library that allows you to use Python to keep track of units. You can even use Pint and perform normal math operations and keep the units.

Press + to interact
import pint
ureg = pint.UnitRegistry()
converter = ureg.Quantity
x = converter(2.0, ureg.inches)
y = x*12
print(y)

GUIs provide a way for normal users to ...