The following cell will do an ideal gas calculation.
$$ P = \frac{n R T}{V} $$!pip install pint
Collecting pint Downloading Pint-0.7.2.tar.gz (149kB) 100% |████████████████████████████████| 153kB 154kB/s Building wheels for collected packages: pint Running setup.py bdist_wheel for pint ... done Stored in directory: /Users/jeff/Library/Caches/pip/wheels/c4/51/5e/1645f2de6cd09ff62e27db29123a4a81add45347b355e19ded Successfully built pint Installing collected packages: pint Successfully installed pint-0.7.2
from pint import UnitRegistry
ur = UnitRegistry()
Rgas = 8.314 * ur.joule/ur.kelvin/ur.mole
T = 284 * ur.kelvin
n = 2 * ur.mole
V = 22.4 * ur.liter
P = n*Rgas*T/V
print P.to(ur.psi)
30.5767522699 pound_force_per_square_inch