# Variables
mc = 12.; #mol wt of carbon
mh = 1.; #mol wt of hydrogen
m = 8.*(mc+mh); #mol wt of C8H8
DOP = 10000.; #degree of polarization , given
# Calculations
mp = DOP*m;
# Results
print "Molecualr weight of Styrene polymer = %.2e "%mp
# Variables
DOP = 100000.;
mc = 12.; #mol wt of carbon
mf = 19.; #mol wt of fluorine
# Calculations
m = (2*mc)+(4*mf); #mol wt of teflon monomer
mp = DOP*m;
mh = 1.; #mol wt of hydrogen
m1 = (2*mc)+(4*mh); #mol wt of polyethylene
#for same DOP
x = m/m1; #ratio of molecular weights
# Results
print "Molecualr weight of Teflon polymer = %e"%mp
print "Ratio of molecualr weights of Teflon and Polyethylene = %.2f"%x