#initiation of variable
hc=1240.0*10**-9;Rinfi=1.097*10**7;Z=11; #for sodium atom;and other constants in MeV
#calculation
delE=3*hc*Rinfi*(Z-1)**2/4.0 #change in energy
#result
print"The energy of the Ka x-ray of the sodium atom in KeV.is",round(delE/10**3,3);
#initiation of variable
EKa=21.990;EKb=25.145;EK=25.514 #all the values are in KeV
#calcualtion
ELo=EKb-EKa;
#result
print"The enrgy of La of X-ray in KeV.is",round(ELo,3); #Energy of La X-ray
#partb
EL=-EK+EKa;
#result
print"Hence the binding energy of the L electon in KeV.is",round(EL,3); # for electron L electron
#initiation of variable
l=1.0;
#calculation
Lmax=l+l;Lmin=l-l;
s=1.0/2; Smax=s+s;Smin=s-s;
#result
print"Value of L ranges from",Lmin," to",Lmax," i.e",Lmin,1,Lmax;
print"Values of S are maxi,min",Smax,Smin;
#initiation of variable
l=1.0;
#calculation
Lmax=l+l;Lmin=l-l;
s=1.0/2; Smax=s+s;Smin=s-s;
#result
print"Considering any two electrons,Value of L2e ranges from",Lmin," to",Lmax," i.e",Lmin,1,Lmax;
print"Adding the angular momentum of the third electron to L2emax gives the maximum whole angular momentum as 2+1=3; and subtracting it from L2e=1 gives 0"
print"Values of S are maxi,min",Smax,Smin;
print"Adding and subtracting the spin of third to S2e=1 and S2e=0 respectively gives the spins 3/2 and 1/2 for the 3 electron system.";