File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11def resistance_calculator (
2- material : str , lenght : float , section : float , temperature : float
2+ material : str , length : float , section : float , temperature : float
33):
44 """
55 material is a string indicating the material of the wire
66
7- lenght is a floating value indicating the lenght of the wire in meters
7+ length is a floating value indicating the length of the wire in meters
88
99 diameter is a floating value indicating the diameter of the wire in millimeters
1010
@@ -35,6 +35,6 @@ def resistance_calculator(
3535 temp_coefficient = materials [material ]["coefficient" ]
3636
3737 rho = rho_20deg * (1 + temp_coefficient * (temperature - 20 ))
38- resistance = rho * lenght / section
38+ resistance = rho * length / section
3939
4040 return f"{ resistance } Ω"
You can’t perform that action at this time.
0 commit comments