In [1]:

```
from __future__ import division
import math
#initializing the variables:
Ia = 0.040;# in Amperes
I = 50;# in Amperes
Rl = 1.2;# in Kohms
Vc = 7; # in Volts
R = 1; # in Kohms
Ib = 50*1E-6; # in Amps
Iic = 20*1E-6; #in Amps
#calculation:
Vi = (70 - 30)*1E-6 * 1000
Vo = 3.6
Av = Vo/Vi
Io = 3*1E-3
Ii = (70 - 30)*1E-6
Ai = Io/Ii
Ap = Av*Ai
#Results
print "\n\n Result \n\n"
print "\n voltage gain, Av = ", round(Av,2)
print "\n Current gain, Av = ", round(Ai,2)
print "\n Power gain, Av = ", round(Ap,2)
```