Conclusion for Units and GUIs
Concluding remarks for GUIs and unit conversion.
We'll cover the following...
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
Python 3.8
import pintureg = pint.UnitRegistry()converter = ureg.Quantityx = converter(2.0, ureg.inches)y = x*12print(y)
GUIs provide a way for normal users to ...