Chpater 1:Chemistry-The Study of Change

Example no:1.1,Page no:19

In [39]:
#Variable declaration
m=301;#mass of gold, g
v=15.6;# volume of gold, cm**3

#Calculation
d=m/v;#density of gold, g/cm**3

#Result
print"The density of gold is : ",round(d,1)," g/cm**3"
The density of gold is :  19.3  g/cm**3

Example no:1.2,Page no:19

In [40]:
#Variable declaration
d=13.6;#density of mercury, g/ml
v=5.50;# volume of mercury, ml

#Calculation
m=d*v;#mass of mercury, g

#Result
print"The mass of mercury is : ",round(m,1)," g"
The mass of mercury is :  74.8  g

Example no:1.3,Page no:20

In [15]:
#Variable declaration
C1=224.0#melting point of solder, C
F=-452.0#boiling point of helium, F
C3=-38.9#meltiing point of mercury, C

#Calculation
#(a)
F1=(C1*(9.0/5.0)+32.0)       #melting point of solder, F
#(b)
C2=(F-32.0)*5.0/9.0       #boiling point of helium, C
#(c)
K=C3+273.15#meltiing point of mercury, K

#Result
print"(a) The melting point of solder is : ",round(F1)," F"
print"(b) The boiling point of helium is :",round(C2),"C"
print"(c) The meltiing point of mercury is :",round(K,1),"K"
(a) The melting point of solder is :  435.0  F

(b) The boiling point of helium is : -269.0 C

(c) The meltiing point of mercury is : 234.2 K

Example no:1.5,Page no:25

In [41]:
#Variable declaration
A1=11254.1;#g
B1=0.1983;#g
A2=66.59;#L
B2=3.113;#L
A3=8.16;#m
B3=5.1355;
A4=0.0154;#kg
B4=88.3;#mL
A5=2.64*10**3;#cm
B5=3.27*10**2;#cm

#Calculation
#(a)
C1=A1+B1;#g
#(b)
C2=A2-B2;#L
#(c)
C3=A3*B3;#m
#(d)
C4=A4/B4;#kg/mL
#(e)
C5=A5+B5;#cm
print"(a) (",round(A1,1),"+",round(B1,4),")g=",round(C1,1),"g\n"
print"(b) (",A2," -",B2,")L=",round(C2,2),"L\n"
print"(c) ",A3,"m*",B3,"=",C3,"m =",round(C3,1),"m\n"
print"(d) ",A4," kg /",B4," mL =",C4,"=",round(C4,6),"kg/mL=%.2e"%round(C4,6),"kg/mL\n"
print"(e) (",(A5*10**-3),"*10**3 + %.2f"%(B5*10**-2),"*10**2 )cm =",(C5*10**-3),"*10**3 cm\n"
(a) ( 11254.1 + 0.1983 )g= 11254.3 g

(b) ( 66.59  - 3.113 )L= 63.48 L

(c)  8.16 m* 5.1355 = 41.90568 m = 41.9 m

(d)  0.0154  kg / 88.3  mL = 0.000174405436014 = 0.000174 kg/mL=1.74e-04 kg/mL

(e) ( 2.64 *10**3 + 3.27 *10**2 )cm = 2.967 *10**3 cm

Example no:1.6,Page no:29

In [51]:
#Variable declaration
lb=0.0833;#pound mass, lb

#Calculation
g=lb*453.6;#pound mass to gram mass, 1lb=453.6g
mg=1000*g;#gram to milligram

#Result
print"The mass of glucose is :%.2e"%mg,"mg"
The mass of glucose is :3.78e+04 mg

Example no:1.7,Page no:30

In [2]:
#Variable declaration
L=5.2;#volume in litres

#Calculation
cc=1000*L;#litre to cm**3
mc=cc/10**6;#cm**3 to m**3

#Result
print"The volume of blood is %.1e"%mc,"m**3"
The volume of blood is 5.2e-03 m**3

Example no:1.8,Page no:30

In [1]:
#Variable declaration
gpcc=0.808;#density in gram per cm**3

#Calculation
kgpmc=1000*gpcc;#g/cm**3 to kg/m**3, as 1000g=1kg and 1cm=10**-2 m

#Result
print"The density of liquid nitrogen is :",kgpmc,"kg/m**3"
The density of liquid nitrogen is : 808.0 kg/m**3