n = 2.0
V = 22.4
T = 284.0
R = 8314.0
P = n*R*T/V
print P
210819.285714
print "The Pressure is: ", P
The Pressure is: 210819.285714
!pip install pint
Requirement already satisfied (use --upgrade to upgrade): pint in /Users/jeff/anaconda/lib/python2.7/site-packages
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
from pint import UnitRegistry
ur = UnitRegistry()
V = 22.4 * ur.liter
T = 284.0 * ur.kelvin
R = 8314.0 * ur.Pa * ur.liter/ur.mol/