We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c70b8f0 + 58b3142 commit 76e3877Copy full SHA for 76e3877
1 file changed
Calculate resistance.py
@@ -7,8 +7,8 @@ def res(R1, R2):
7
return 0
8
9
10
-Resistance1 = int(input("Enter R1 : "))
11
-Resistance2 = int(input("Enter R2 : "))
+Resistance1 = float(input("Enter R1 : "))
+Resistance2 = float(input("Enter R2 : "))
12
option = input("Enter series or parallel :")
13
print("\n")
14
R = res(Resistance1, Resistance2)
0 commit comments