#this programme claculates the time required for the egg to be boiled from math import pi,log def egg_fun(M,to,ty): den=1.038 c=3.7 k=5.4e-3 tw=100 t=((M**2*den)/(4*pi/3)**2)**(1.0/3)*(c/(k*pi**2))*log(0.76*(to-tw)/(ty-tw)) return t t0=[4,25] m=[47,67] for t in t0: for M in m: print 'the time required to boil',M,'g. eggs from',t,'dC is',egg_fun(M,t,70) raw_input()