import math V=3 t=2*10**-3 R=10.0 #Determination of average energy P=(V**2)/R #Instantaneous power U=P*t print 'The average energy is',U,'J'
The average energy is 0.0018 J