# Chapter no. 1: Introduction To Electronics¶

## Example 1.1 Page no.8¶

In [1]:
#Given
A=4        #NUMERICAL CODE FOR BAND YELLOW
B=7        #NUMERICAL CODE FOR BAND VIOLET
C=3        #NUMERICAL CODE FOR BAND ORANGE
D=5       #TOLERANCE VALUE FOR BAND GOLD i.e. 5%

#Resistor Value Calculation
R=(A*10+B)*10**C
#Tolerance Value Calulation
T=D*R/100;
R1=R-T;
R2=R+T;

# Results
print  "Therefore thr resistance should be within the range ", R1*10**(-3) ,"kohm","and", R2*10**(-3),"kohm"

Therefore thr resistance should be within the range  44.65 kohm and 49.35 kohm


### Example 1.2 Page no.8¶

In [2]:
#Given
A=8         #NUMERICAL CODE FOR BAND GRAY
B=6         #NUMERICAL CODE FOR BAND BLUE
C=-1       #NUMERICAL CODE FOR BAND GOLD
D=5        #TOLERANCE VALUE FOR BAND GOLD i.e. 5%
#Resistor Value Calculation
R=(A*10+B)*10**C
#Tolerance Value Calulation
T=D*R/100
R1=R-T
R2=R+T
# Results
print "Range of Values of the Resistor is  between ",R1,"ohm","and",R2,"ohm"

Range of Values of the Resistor is  between  8.17 ohm and 9.03 ohm