#Resistance of the wire
import math
#variable declaration
r=0.45*10**-3 # radius of the wire
L=0.3 # length of the wire
rho=17.0*10**-9 # resistivity of wire in ohm-m
#Calculations
R=rho*(L/(math.pi*r**2))
#Result
print('The resistance of the wire is %.3f ohm'%R)
#Extension of a wire
import math
#variable declaration
r=1.25*10**-3 # radius of the wire in m
L=3.0 # length of wire in m
F=4900.0 # applied force in Newton
e=2.05*10**11 # modulus of elasticity
#calculation
s=F/(math.pi*r**2*e)
#result
print('strain = %.3f\nTherefore, extension = %.3f m'%(s,s*3))