Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
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
10
Resistance1 = float(input(
"Enter R1 : "
))
Callers
1
Calculate resistance.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected