In [5]:

```
#Given
P=100.0 #W
V=220.0 #V
#Calculation
I=P/V
R=V**2/P
#Result
print"Resistance is",R,"ohm"
print"Current capacity is",round(I,3),"A"
```

In [9]:

```
#Given
e=1.6*10**-19 #C
P=100 #W
V=200.0 #V
t=1
#Calculation
I=P/V
q=I*t
N=q/e
#Result
print"Number of electrons is", N
```

In [10]:

```
#Given
P1=60 #W
P2=100.0
#Calculation
I=P1/P2
#Result
print"Hence 100 W bulb draws more current"
```

In [12]:

```
#Given
P1=60.0 #W
P2=100
#Calculation
R=P2/P1
#Result
print"(a) 60 W bulb will dissipate more power."
print"(b) Since 60 W bulb is dissipating more power, it glows brighter."
```

In [18]:

```
#Given
P1=500.0 #W
V1=220 #V
P2=100.0
V2=220
#Calculation
R1=V1**2/P1
R2=V2**2/P2
I=V2/(R1+R2)
P11=I**2*R1
P22=I**2*R2
#Result
print"(i) Power consumed by heater is",round(P11,2),"W"
print"(ii) Power consumed by electric bulb is",round(P22,2),"W"
```

In [23]:

```
#Given
P=100.0 #W
V=220 #V
V1=110
#Calculation
R=V**2/P
P1=V1**2/R
#Result
print"Power consumed by the bulb is",P1,"W"
```

In [30]:

```
#Given
P=550 #W
V=220 #V
V1=222.2 #V
V2=217.8 #V
#Calculation
R=V**2/P
P=V1**2/R
P1=V2**2/R
#Result
print"minimum power is",round(P,0),"W"
print"maximum power is",round(P1,0),"W"
```

In [34]:

```
#Given
V=220
P=60.0 #W
P1=85
#Calculation
import math
R=V**2/P
V1=math.sqrt(P1*R)
#Result
print"Voltage fluctuation is",round(V1,1),"V"
```

In [42]:

```
#Given
P=50*10**3 #W
V=5000.0
R=20
#Calculation
I=P/V
P1=I**2*R
P2=P-P1
#Result
print"Power received by the factory is",P2*10**-3,"Kw"
```

In [50]:

```
#Given
R2=2 #ohm
R3=2 #ohm
I=3 #A
#Calculation
P=I**2*R2
R1=(R2*R3)/(R2+R3)
P1=I**2*R1
D=P+P1
#Result
print"The maximum power is",D,"W"
```

In [59]:

```
#Given
R=0.5 #ohm
I=100 #A
T=24*60*60
#Calculation
Q=I**2*R*T
#Result
print"Energy is being lost per day in the form of heat is",Q*10**-8,"*10**8 J"
```

In [64]:

```
#Given
R=50.0 #ohm
V=10 #V
T=3600 #s
#Calculation
I=V/R
W=I**2*R*T
#Result
print"The source of this energy is",W,"J"
```

In [70]:

```
#Given
P=100 #W
V=200 #V
T=60
I=10
#Calculation
R=V**2/P
W=(P**2/R)*I*T
#Result
print"The heat & light produced by the bulb is",W,"J"
```

In [82]:

```
#Given
R1=3 #ohm
R2=6
R3=2
V=12 #V
T=300 #s
#Calculation
R12=R1*R2/(R1+R2)
R=R12+R3
I=V/R
I1=I*R2/(R1+R2)
I2=I*R1/(R1+R2)
Q1=I1**2*R1*T
Q2=I2**2*R2*T
Q3=I**2*R3*T
#Result
print"Heat produced in resistance R1 is",Q1,"J"
print"Heat produced in resistance R2 is",Q2,"J"
print"Heat produced in resistance R3 is",Q3,"J"
```

In [3]:

```
#Given
t1=300 #S
t2=600 #S
#Calculation
t=(t1+t2)/60.0
#Result
print"Time required to boil water is",t,"minute"
```

In [14]:

```
#Given
R=100 #ohm
I=0.5 #A
W=10*10**-3 #Kg
M=250*10**-3 #Kg
T=1800 #s
C=4.2*10**3
#Calculation
Q=I**2*R*T
V=Q/((W+M)*C)
#Result
print"The rise of the temperature is",round(V,1),"C"
```

In [26]:

```
#Given
V=200
R=100
R1=121.0
A=1000 #W
B=400 #W
C=400 #W
T=116 #h
G=2.50
#Calculation
D=V**2/R
D1=V**2/R1
E=A+B+C+D1
F=E*T
H=F*G
#Result
print"The bill for february is",round(H*10**-3,2)
```

In [103]:

```
#Given
a=0.12 #KWh
b=1.44 #KWh
c=0.48 #KWh
d=0.24
e=0.30
i=2.70
g=30
#Calculation
f=a+b+c+d+e
h=2*g*f
k=i*h
#Result
print"Electric bill for 2 month is", k
```

In [105]:

```
#Given
P=100*10**6 #W
V1=20000
V2=200 #V
#Calculation
I1=P/V1
Q1=I1**2
I2=P/V2
Q2=I2**2
#Result
print"Transmission done at V1=20,000 is", Q1*10**-5,"10**5"
print"Transmission done at V2=200 V is", Q2*10**-10,"10**10"
print"Less power wastage when transmission is done at Q1"
```

In [115]:

```
#Given
p1=4.9*10**-7 #ohm m
l1=8.456 #m
b1=1.0 #mm
t1=0.03*10**-6 #m
l2=4.235
A2=0.12*10**-6
p2=1.1*10**-6
#Calculation
A1=b1*t1
R1=p1*(l1/A1)
R2=p2*(l2/A2)
#Result
print"Rate for heat production for constantan ribbon is", round(R1,3),"W"
print"Rate for heat production for nichrome ribbon is",round(R2,3),"W"
```

In [76]:

```
#Given
V=50 #V
I=12 #A
d=70
#Calculation
g=V*I
t=g*(d/100.0)
v=t/I**2
#Result
print"The resistance of the motor is",round(v,2),"ohm"
```

In [96]:

```
#Given
a=100
b=6
c=8.0
d=2.0
f=0.50
t=15*60
#Calculation
e=a-b*d
x=b*f
r=(e/c)-x
r1=a*r
r2=r**2*(r+b*f)
r3=r1-r2
M=r3*t
#Result
print"Resistance in the charging circuit is",r,"ohm"
print"The power supplied by the d.c source is",r1,"W"
print"The power dissipated as heat is",r2,"W"
print"The power stored in the battery is",r3,"W"
print"Energy stored in the battery in 15 minute is",M,"J"
```

In [130]:

```
#Given
V=64 #V
e=2.0 #V
n=8
r=1/8.0
R=7 #ohm
I=3.5 #A
b=3600
#Calculation
Te=e*n
R1=r*n
E=V*I
E1=Te*I
E11=I**2*(R+R1)
Em=E-(E1+E11)
Em1=Em*b
Ec=E1*b
#Result
print"(a) Mechanical energy yielded by motor is", Em1,"J"
print"(b) Chemical energy stored in the battery is",Ec,"J"
```

In [134]:

```
#Given
E=24 #V
r=4 #ohm
a=1
#Calculation
R=r/(2.0-a)
I=E/(R+r)
#Result
print"Current drawn from the battery is", I,"A"
```