from __future__ import division
Q=208 #disintegration energy per event in Mev
m=1*10**3 #mass of uranium
A=235 #mass number or uranium in g/mol
a=6.02*10**23 #avagadro number nuclei/mol
N=(a/A)*m #nuclei
E=N*Q
P=E*4.45*10**-20
print "Disintegration energy = %0.2e Mev is"%E
print "or = %0.2e KWh"%P
m1=2.014102 # mass of deuterium in atomic mass unit
m2=3.016049 #mass of tritium in atomic mass unit
m3=1.007825 # mass of hydrogen in atomic mass unit
#referring to the deuterium-deuterium reaction
#mass before reaction
M1=2*m1
#mass after reaction
M2=m2+m3
#excessive mass
m=M1-M2
#converting mass into energy
#1 u = 931.494 Mev
E=m*931.494
print " Energy release in deuterium-deuterium reaction = %0.2f Mev"%E