MCPcopy Create free account
hub / github.com/geekcomputers/Python / res

Function res

Calculate resistance.py:1–7  ·  view source on GitHub ↗
(R1, R2)

Source from the content-addressed store, hash-verified

1def res(R1, R2):
2 sum = R1 + R2
3 if option == "series":
4 return sum
5 elif option == "parallel":
6 return (R1 * R2) / sum
7 return 0
8
9
10Resistance1 = float(input("Enter R1 : "))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected