# Variables
p1 = 50 #atm
p2 = 100 #atm
p3 = 200 #atm
p4 = 400 #atm
p5 = 800 #atm
p6 = 1000 #atm
r1 = 0.979
r2 = 0.967
r3 = 0.971
r4 = 1.061
r5 = 1.489
r6 = 1.834
# Calculations
f1 = r1*p1
f2 = r2*p2
f3 = r3*p3
f4 = r4*p4
f5 = r5*p5
f6 = r6*p6
# Results
print 'fugacity of nitrogen gas = %.2f atm'%(f1)
print ' fugacity of nitrogen gas = %.1f atm'%(f2)
print ' fugacity of nitrogen gas = %.1f atm'%(f3)
print ' fugacity of nitrogen gas = %.1f atm'%(f4)
print ' fugacity of nitrogen gas = %.f atm'%(f5)
print ' fugacity of nitrogen gas = %.f atm'%(f6)
# Variables
p1 = 50 #atm
p2 = 100 #atm
p3 = 200 #atm
p4 = 400 #atm
r1 = 0.98
r2 = 0.97
r3 = 0.98
r4 = 1.07
# Calculations
f1 = p1*r1
f2 = p2*r1
f3 = p3*r3
f4 = p4*r4
# Results
print 'fugacity of nitrogen gas = %.f atm'%(f1)
print ' fugacity of nitrogen gas = %.f atm'%(f2)
print ' fugacity of nitrogen gas = %.f atm'%(f3)
print ' fugacity of nitrogen gas = %.f atm'%(f4)
# Variables
p = 3.66 #atm
v = 6.01 #litre mole**-1
T = 0 #C
R = 0.082 #lit-atm mole**-1 K**-1
# Calculations
f = p**2*v/(R*(273+T))
# Results
print 'fugacity of liquid chlorine = %.2f atm'%(f)