#Initialization of variables
input=50000 #ppl/yr
generation=22000 #ppl/yr
consumption=19000 #ppl/yr
output=75000 #ppl/yr
print ("All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
#Calculations and printing:
accumulation = input+generation-output-consumption
print (" We know that accumulation=input+generation-output-consumption")
print '%s %d %s' %('Hence, Each year population decreases by', -accumulation, 'people')
raw_input("Press the Enter key to quit")
#Initilization of variables
inputBenzene=500 #kg/h
inputToluene=500 #kg/h
UpStreamBenzene=450 #kg/h
DownStreamToluene=475 #kg/h
#Calculations and printing:
print("All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("Using benzene balance,")
m2dot=inputBenzene-UpStreamBenzene
print ' %s %d %s' %(' m2dot= ', m2dot, ' kg B/h')
print("Using Toluene balance")
m1dot=inputToluene-DownStreamToluene
print ' %s %d %s' %(' m1dot= ', m1dot, ' kg T/h')
print("To check we can perform Overall mass balance")
raw_input("Press the Enter key to quit")
#Initialization of variables
m1=200 #g
m2=150 #g
x1=0.4 #methanol/g
x2=0.7 #methanol/g
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
m=m1+m2
print '%s %d %s' %(' Total mass after mixing m=',m, 'g',)
x=(m1*x1 + m2*x2)/m
print'%s %.2f %s %.2f' %(' The composition of the methanol in the product is', x ,' and water is', 1-x)
raw_input("Press the Enter key to quit")
#Initilization of variables
rate=0.1 #kmol/min
x1=0.1 #mole fraction hexane vapour
vol=10 #m^3
d=0.659 #kg/L
M=86.2 #Kg/kmol
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
ndot=rate/(1-x1)
deltaN= -vol*d*1000 /M
tf=deltaN/(-0.1 * ndot)
print '%s %.2f %s' %(' The time Required for the Total process= ',tf, 'min')
raw_input("Press the Enter key to quit")
#Initilization of variables
Vdot=20 #CC/min
x=0.015
MH2O=18.02 #g
DH2O=1 #g/CC
x1=0.2
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
n2=Vdot*DH2O/MH2O
print'%s %.2f %s' %('n2=', n2, ' mol/min')
print("Using Water Balance,")
n3=n2/x
print'%s %.2f %s' %('n3=', n3, ' mol/min')
print("Using total mole balance,")
n1=(n3-n2)/(1+x1)
print'%s %.2f %s' %('n1=', n1, ' mol/min')
print("Using N2 balance,")
y=1-x-0.79*n1/n3
print '%s %.2f %s' %('y=',y,' mol O2/mol')
raw_input("Press the Enter key to quit")
#Initilization of variables
basis=100 #mol
FinalBasis=1250.0 #lb-moles/h
#Calulations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
multiply=FinalBasis/basis
Feed=100*multiply
TopStream=50*multiply
BottomStream1=12.5*multiply
BottomStream2=37.5*multiply
print '%s %.2f %s' %(' Final Basis=',Feed,' lb-moles /h')
print '%s %.2f %s' %(' Final Top Stream Feed=',TopStream, 'lb-moles /h')
print '%s %.2f %s' %(' Final Bottom Stream Feed 1 =', BottomStream1,'lb-moles A/h')
print '%s %.2f %s' %(' Final Bottom Stream Feed 2 =' ,BottomStream2,' lb-moles B/h')
raw_input("Press the Enter key to quit")
#Initilization of variables
basis=100 #kg
inputx=0.2
outputx=0.08
D=1 #kg/L
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("Using NaOH balance")
m2=inputx*basis/outputx
print '%s %.2f %s' %('m2=',m2 ,'Kg NaOH')
print("Using Total mass balance")
m1=m2-basis
print '%s %.2f %s' %('m1=',m1, 'Kg Water')
V1=m1/D
print '%s %.2f %s' %(' V1=',V1 ,'Litres')
Ratio1=V1/basis
Ratio2=m2/basis
print '%s %.2f %s' %(' Ratio of lt water/Kg Feed =', Ratio1,' lt water/Kg Feed')
print '%s %.2f %s' %(' Ratio of Kg product/Kg Feed =', Ratio2 ,'Kg product/Kg Feed')
raw_input("Press the Enter key to quit")
#Initilization of variables
inputx=0.45
outputx=0.95
basis=2000 #L/h
outputBasis=100 #Kmol
M1=78.11
M2=92.13
D=0.872
z=0.08
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
mass1=outputBasis*M1*outputx
mass2=outputBasis*M2*(1-outputx)
mass=mass1+mass2
yB2=mass1/mass
m1=basis*D
print '%s %.2f %s' %(' m1=',m1,' Kg/h')
mB3=z*inputx*m1
print '%s %.2f %s' %(' mB3=',mB3,' Kg/h')
print("Using Benzene balance,")
m2=(inputx*m1-mB3)/yB2
print '%s %.2f %s' %(' m2=',m2, 'Kg/h')
print("Using Toluene balance,")
mT3=(1-inputx)*m1-(1-yB2)*m2
print '%s %.2f %s' %(' mT3=',mT3,' Kg/h')
m3=mB3+mT3
print '%s %.2f %s' %(' m3=',m3,' Kg/h')
yB3=mB3/m3
print '%s %.2f %s' %(' yB3=',yB3,' kg B/kg')
yT3=1-yB3
print '%s %.2f %s' %(' yT3=',yT3, 'kg T/kg')
raw_input("Press the Enter key to quit")
#Initilization of variables
inputMass1=100 #Kg/h
inputMass2=30 #Kg/h
outputMass1=40 #Kg/h
outputMass2=30 #Kg/h
inputx1=0.5
inputx2=0.3
outputx1=0.9
outputx2=0.6
#Calculations and printing
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("using Overall Mass balance, ")
m3=inputMass1+inputMass2-outputMass1-outputMass2
print '%s %d %s' %('m3=',m3,' Kg/h')
print("using Overall balance on A, ")
x3=(inputMass1*inputx1+inputMass2*inputx2-outputMass1*outputx1-outputMass2*outputx2)/m3
print '%s %.2f %s' %('x3=',x3,' Kg A/kg')
print("using Mass balance on Unit 1, ")
m1=inputMass1-outputMass1
print '%s %d %s' %('m1=',m1,' Kg/h')
print("using A balance on Unit 1, ")
x1=(inputMass1*inputx1-outputMass1*outputx1)/m1
print '%s %.2f %s' %('x1=',x1,' Kg A/kg')
print("using Mass balance on mixing point, ")
m2=inputMass2+m1
print '%s %d %s' %('m2=',m2,'Kg/h')
print("using A balance on mixing point, ")
x2=(inputMass2*inputx2+m1*x1)/m2
print '%s %.2f %s' %('x2=',x2 ,'Kg A/kg')
raw_input("Press the Enter key to quit")
#Initilization of variables
from numpy import matrix, array, dot
from numpy.linalg import inv
import math
massin=100 #kg
M1=100 #kg
M2=75 #Kg
massout=43.1 #kg
inputx=0.5
outputxA=0.053
outputxM=0.016
m1xA=0.275
m1xM=0.725
m3xW=0.03
m3xA=0.09
m3xM=0.88
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("Using Balances around two-extraxtor system,")
print("Balance on total mass,")
A=array([[1,1],[m1xA,m3xA]])
b=array([[massin+M1+M2-massout],[massin*inputx - massout*outputxA]])
C=dot(inv(A),b)
m1=C[0,0]
m3=C[1,0]
print '%s %.2f %s' %(' m1=',m1,' Kg')
print '%s %.2f %s' %(' m3=',m3,' Kg')
print("Balance on M")
xM1=(massin+M2-massout*outputxM-m3*m3xM)/m1
print '%s %.2f %s' %(' xM1=',xM1,' kg MIBK/kg')
print("Balances around Extract mixing point, ")
print("Balance on A")
mA4=m1*m1xA+m3*m3xA
print '%s %.2f %s' %(' mA4=',mA4 ,'Kg Acetone')
print("Balance on M")
mM4=m1*xM1+m3*m3xM
print '%s %.2f %s' %(' mM4=',mM4,' Kg MIBK')
print("Balance on W")
mW4=m1*(m1xM-xM1) + m3*m3xW
print '%s %.2f %s' %(' mW4=',mW4 ,'Kg Water')
print("Balances around the First extractor")
print("Balance on A")
mA2=massin*inputx-m1*m1xA
print '%s %.2f %s' %(' mA2=',mA2,' Kg Acetone')
print("Balance on M")
mM2=massin-m1*xM1
print '%s %.2f %s' %(' xM1=',xM1, 'Kg MIBK')
print("Balance on W")
mW2=massin*inputx- m1*(m1xM-xM1)
print '%s %.2f %s' %(' mW2=',mW2,'Kg Water')
#Initilization of variables
import math
import numpy
from numpy import linalg
x1=0.960
x2=0.977
x3=0.983
basis=100 #mol
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("Overall dry Air balance,")
n1=x3*basis/x1
print '%s %.2f %s' %('n1=',n1,' mol Fresh feed')
print("Overall mole balance,")
n3=n1-basis
print '%s %.2f %s' %('n3=',n3,' mol Water condensed')
print("Mole balance on mixing point,")
print("n1+n5=n2")
print("Water balance on mixing point")
print ' %.2f %s %.2f %s %.2f %s' %(1-x1,' n1+ ', 1-x3,' n5 =', 1-x2,'n2')
A=([[1 ,-1],[1-x2,-(1-x3)]])
b=([[n1],[(1-x1)*n1]])
C=numpy.dot(linalg.inv(A),b)
n2=C[0,0]
n5=C[1,0]
print '%s %.2f %s' %(' \n n2=',n2,' mol')
print '%s %.2f %s' %(' \n n5=',n5,' mol Recycled')
raw_input("Press the Enter key to quit")
#Initilization of variables
import math
import numpy
from numpy import linalg
feed=4500 #kg/h
feedx=0.333
m3x=0.494
m5x=0.364
x=0.95
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
m6x=m5x
print '%s %.2f %s' %('Given, m4=',x,' (m4+m5)')
print("using Overall K2CrO4 balance, ")
print ' %.2f %s %.2f %s %.2f %s' %(feedx,' *', feed ,'= m4+', m6x,'m5')
A=([[1-x,-x],[1,m6x]])
b=([[0],[feedx*feed]])
C=numpy.dot(linalg.inv(A),b)
m4=C[0,0]
m5=C[1,0]
print '%s %.2f %s' %(' \n m4=',m4,' K2CrO4 crystals/h')
print '%s %.2f %s' %(' \n m5=',m5,' entrained solution/h')
print("Overall Total mass balance , ")
m2=feed-m4-m5
print '%s %.2f %s' %('m2=',m2,' Kg H2O evaporated/h')
print("Mass balance around the crystallizer,")
print("m3=m4+m5+m6")
print("Water balance around the crystallizer, ")
print ' %.2f %s %.2f %s %.2f %s' %(1-m3x, 'm3=', 1-m5x,' m5 + ',1-m6x,' m6')
D=([[1,-1],[1,(-1+m6x)/(1-m3x)]])
e=([[m4+m5],[(1-m5x)*m5/(1-m3x)]])
F=numpy.dot(linalg.inv(D),e)
m3=F[0,0]
m6=F[1,0]
print '%s %.2f %s' %(' \n m3=',m3,' Kg/h fed to the crystallizer')
print '%s %.2f %s' %(' \n m6=',m6,' Kg/h')
ratio=m6/feed
print '%s %.2f %s' %(' \n ratio=',ratio,' Kg recycle/ Kg fresh feed')
print("mass balance around Recycle-fresh feed mixing point, ")
m1=feed+m6
print '%s %.2f %s' %('m1=',m1,' kg/h feed to the evaporator')
print("With out recycle, ")
print("m3=622 Kg/h")
print("m5=2380 Kg/h")
raw_input("Press the Enter key to quit")
#Initilization of variables
basis=100 #mol
xP=0.1
xN=0.12
xA=0.78
x=0.3
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
nP=basis*xP
nN=basis*xN
nO2=basis*xA*0.21
nN2=basis-nP-nN-nO2
if nN/nP>1:
print("NH3 is in excess")
else:
print("Propene is in excess")
if nO2/nP>1:
print("O2 is in excess")
else:
print("propene is in excess")
nO2reacted=nP*1.5
nNreacted=nP*1
ExcessAmmonia=(nN-nNreacted)*100/nNreacted
ExcessO2=(nO2-nO2reacted)*100/nO2reacted
print '%s %.2f' %(' \n percentage excess Ammonia=',ExcessAmmonia)
print '%s %.2f' %(' \n percentage excess Oxygen=',ExcessO2)
nPout=(1-x)*nP
print '%s %.2f %s' %(' \n no.of moles of Propylene left=', nPout,' mol')
E=nP-nPout
nNout=nN-E
nO2out=nO2-1.5*E
nAc=E
nW=3*E
print'%s %.2f %s' %(' \n no.of moles of Ammonia left=', nNout,' mol')
print'%s %.2f %s' %(' \n no.of moles of oxygen left=' ,nO2out,' mol')
print'%s %.2f %s' %(' \n no.of moles of ACN formed= ',nAc ,'mol')
print'%s %.2f %s' %(' \n no.of moles of water formed=', nW ,'mol')
print'%s %.2f %s' %(' \n no.of moles of Nirtogen present= ',nN2 ,'mol')
raw_input("Press the Enter key to quit")
#Initialization of variables
import math
import numpy
from numpy import linalg
print("Given, Reaction is CO(g)+ H2O(g) --> CO2(g)+ H2(g)")
nCO=1.
nH2O=2.
#Calculations and printing:
nt=nCO+nH2O
print("\n It is found that Ee=0.667")
Ee=0.667
yCO=(nCO-Ee)/nt
yH2O=(nH2O-Ee)/nt
yCO2=Ee/nt
yH2=Ee/nt
print("\n Ee is obtained by solving the quadratic yCO2*yH2/(yCO*yH2O)=1")
print("\n Limiting reactant is CO")
print '%s %.3f' %("\n yCO = ",yCO)
print '%s %.3f' %("\n yCO2 = ",yCO2)
print '%s %.3f' %("\n yH2O = ",yH2O)
print '%s %.3f' %("\n yH2 = ",yH2)
nCOF=yCO*nt
fCO=(nCO-nCOF)/nCO
print '%s %.3f' %("\n Fractional conversion of CO at equilibrium is ", fCO)
raw_input('press enter key to exit')
#Initilization of variables
basis=100 #mol
x=0.850
conv1=0.501
conv2=0.471
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
n1=(1-conv1)*basis*x
n2=conv2*basis*x
E1=n2
E2=basis*x - E1-n1
n3=E1-E2
n4=2*E2
n5=basis*(1-x)
nt=n1+n2+n3+n4+n5
selectivity=n2/n4
print '%s %.2f %s ' %('selectivity=',selectivity,' mol Ethene/mol methane')
raw_input("Press the Enter key to quit")
#Initilization of variables
basis=100 #mol
x=0.850
conv1=0.501
conv2=0.471
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
n1=(1-conv1)*basis*x
n2=conv2*basis*x
E1=n2
E2=basis*x - E1-n1
n3=E1-E2
n4=2*E2
n5=basis*(1-x)
nt=n1+n2+n3+n4+n5
selectivity=n2/n4
print '%s %.2f %s ' %('selectivity=',selectivity,' mol Ethene/mol methane')
raw_input("Press the Enter key to quit")
#Initilization of variables
import math
import numpy
from numpy import linalg
x0=0.996
basis=100 #mol combined feed to the reactor
inputxH2=0.7
single_pass=0.6
inputxCO2=0.28
molI=2
Ix=0.004
final=155 #kmol/h
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("Reactor analysis, ")
n2=(1-single_pass)*basis*inputxH2
print '%s %.2f %s' %('n2=',n2,' mol H2')
print("H2 balance")
consH2=basis*inputxH2-n2
print '%s %.2f %s' %('H2 moles consumed=',consH2,' mol H2')
print("CO2 balance")
n1=basis*inputxCO2-consH2/3
print '%s %.2f %s' %('n1=',n1,'mol CO2')
print("Methanol balance")
n3=consH2/3
print '%s %.2f %s' %('n3=',n3,'mol Methanol')
print("H2O balance")
n4=consH2/3
print '%s %.2f %s' %('n4=',n4,' mol H2O')
print("condenser analysis")
print("Total mole balance")
n5=n1+n2+molI
print '%s %.2f %s' %('n5=',n5 ,'mol')
print("CO2 balance")
x5C=n1/n5
print '%s %.2f %s' %('x5C=',x5C,' mol CO2/mol')
print("H2 balance")
x5H=n2/n5
print '%s %.2f %s' %('x5H=', x5H,'mol CO2/mol')
x1=1-x5C-x5H
print '%s %.2f %s' %('x1=',x1,' mol I/mol')
print("Fresh Feed-Recycle mixing point analysis")
print("Total mole balance")
print '%s %.2f' %('n0+nr=',basis)
print("I balance")
print '%s %.2f %s %.2f %s %.2f' %('n0', Ix,' + nr ',x1,' = ',molI)
A=([[1, 1],[Ix, x1]])
b=([[basis],[molI]])
C=numpy.dot(linalg.inv(A),b) #Here We solve two linear equations simultaneously
n0=C[0,0]
nr=C[1,0]
print '%s %.2f %s' %(' \n n0=',n0,' mol fresh feed')
print '%s %.2f %s' %(' \n nr=', nr ,'mol recycle')
x0C=(basis*inputxCO2-nr*x5C)/n0
print '%s %.2f %s' %(' \n x0C=',x0C,' mol CO2/mol')
x0H=1-x0C-Ix
print '%s %.2f %s' %(' \n x0H=',x0H ,'mol H2/mol')
print("Recycle-Purge splitting Analysis")
print("Total mole balance")
np=n5-nr
print '%s %.2f %s' %('np=',np,' mol purge')
print("Flow chart scaling")
Factor=final/n3
print '%s %.2f %s' %('Factor for scaling=',Factor,' Kmol/h/mol')
raw_input("Press the Enter key to quit")
#Initilization of variables
xN2wet=0.6
xCO2wet=0.15
xO2wet=0.1
xH2O=0.15
basis=100 #mol Wet gas
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("part 1")
wet=xN2wet+xCO2wet+xO2wet
xN2dry=xN2wet/wet
xCO2dry=xCO2wet/wet
xO2dry=xO2wet/wet
print '%s %f %s' %(' \n xN2 dry =', xN2dry,' mol N2/mol dry gas')
print '%s %f %s' %(' \n xO2 dry =',xO2dry,' mol O2/mol dry gas')
print '%s %f %s' %(' \n xCO2 dry =', xCO2dry ,'mol CO2/mol dry gas')
raw_input("Press the Enter key to quit")
#Initilization of variables
basisButane=100. #mol/h butane
basisAir=5000. #mol/h
#calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
nO2Theoretical=basisButane*6.5
nAirTheoretical=nO2Theoretical*4.76
percent=(basisAir-nAirTheoretical)*100/nAirTheoretical
print '%s %.2f' %(' \n percent excess air=',percent)
raw_input("Press the Enter key to quit")
#Initilization of variables
basis=100. #mol ethane feed
E1=0.9
E2=0.25
excess=0.5
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print(" 50percent excess air")
nO2theoretical=basis*3.5
n0=nO2theoretical*(1+excess)/0.21
print '%s %.4f %s' %(' n0=',n0,' mol air fed')
print("90% ethane conversion")
n1=(1-E1)*basis
print '%s %.4f' %('No. of moles of ethane unreacted=',n1)
print("25% conversion to CO")
n4=E2*(basis-n1)*2
print '%s %.4f %s' %('n4=', n4 ,'mol CO')
print("nitrogen balance")
n3=0.79*n0
print '%s %.4f %s' %('n3=', n3,' mol N2')
print("Atomic carbon balance")
n5=2*basis-2*n1-n4
print '%s %.4f %s' %('n5=', n5 ,'mol CO2')
print("Atomic hydrogen balance")
n6=(basis*6-n1*6)/2
print '%s %.4f %s' %('n6=', n6,' mol H2O')
print("Atomic oxygen balance")
n2=(nO2theoretical*1.5*2-n4-n5*2-n6)/2
print '%s %.4f %s' %('n2=', n2 ,'mol O2')
dry=n1+n2+n3+n4+n5
wet=dry+n6
y1=n1/dry
print '%s %.4f %s' %('\n y1=', y1,' mol C2H6/mol')
y2=n2/dry
print '%s %.4f %s' %('\n y2=', y2 ,'mol O2/mol')
y3=n3/dry
print '%s %.4f %s' %('\n y3=', y3,' mol N2/mol')
y4=n4/dry
print '%s %.4f %s' %('\n y4=', y4 ,'mol CO/mol')
y5=n5/dry
print '%s %.4f %s' %('\n y5=',y5,' mol CO2/mol')
ratio=n6/dry
print '%s %.4f %s' %(' \n ratio=',ratio,' mol H2O/mol dry stack gas')
raw_input("Press the Enter key to quit")
#Initilization of variables
basis=100 #mol pf product gas
xCO=0.015
xCO2=0.060
xO2=0.082
xN2=0.843
#Calculations and printing:
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("N2 balance")
na=basis*xN2/0.79
print '%s %.2f %s' %('na=',na,' mol air')
print("Atomic C balance")
nc=basis*xCO + basis*xCO2
print '%s %.2f %s' %('nc=',nc ,'mol C')
print("Atomic O balance")
nw=0.21*na*2-basis*(xCO + xCO2*2 + xO2*2)
print '%s %.2f %s' %('nw=',nw,' mol oxygen')
print("Atomic H2 balance")
nh=nw*2
print '%s %.2f %s' %('nh=',nh ,'mol H2')
ratio=nh/nc
print '%s %.2f %s' %('\n C/H ratio in fuel=',ratio,' mol H/mol C')
print("percent excess air")
nO2theoretical=nc + nh/4
print '%s %.2f %s' %('nO2 theoretical=',nO2theoretical ,'mol O2')
nO2fed=0.21*na
print '%s %.2f %s' %(' \n nO2fed=',nO2fed,' mol O2')
percent=(nO2fed-nO2theoretical)*100/nO2theoretical
print '%s %.2f %s' %('\n percentage excess air=',percent ,'excess air')
raw_input("Press the Enter key to quit")
#Initilization of variables
feed=59.6 #mol/s
x=0.2
TopFlow1=48.7 #mol/s
outputx1=0.021
BottomFlow1=10.9
TopFlow2=48.3
outputx2=0.063
BottomFlow2=6.4
print(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
print("Design")
MEKin1=feed*x
MEKout1=TopFlow1*outputx1 + BottomFlow1
closure1=MEKout1*100/MEKin1
print '%s %d %s' %('closure1=',closure1,' percent')
print("Experiment")
MEKin2=feed*x
MEKout2=TopFlow2*outputx2 + BottomFlow2
closure2=MEKout2*100/MEKin2
print '%s %d %s' %('closure2=',closure2, 'percent')
raw_input("Press the Enter key to quit")