import math
#Initialization
vz=4.7 #voltage
r3=1.222*10**3 #resistance in ohm
r4=10**3 #resistance in ohm
#Calculation
Vo=(vz+0.7)*((r3+r4)*r4**-1) #output voltage
#Result
print' Output Voltage, V = %.1f V'%Vo
import math
#Initialization
vo=10 #voltage
rl=5 #resistance in ohm
vi=15 #voltage
#Calculation
io=vo*rl**-1 #current in ampere
po=vo*io**-1 #power delivered to the load in watt
pt=(vi-vo)*io #power dissipated in the output transistor in watt
#Result
print'Power delivered to the load, P = %d W'%po
print'Power dissipated in the output transistor, P = %d W'%pt