diff --git a/Calculate resistance.py b/Calculate resistance.py index 06dff0b5723..37af01f64dd 100644 --- a/Calculate resistance.py +++ b/Calculate resistance.py @@ -7,8 +7,8 @@ def res(R1, R2): return 0 -Resistance1 = int(input("Enter R1 : ")) -Resistance2 = int(input("Enter R2 : ")) +Resistance1 = float(input("Enter R1 : ")) +Resistance2 = float(input("Enter R2 : ")) option = input("Enter series or parallel :") print("\n") R = res(Resistance1, Resistance2) diff --git a/calci.py b/calci.py index 21d9ace5233..e988d10638e 100644 --- a/calci.py +++ b/calci.py @@ -1,4 +1,4 @@ -a = int(input("enter first value")) -b = int(input("enter second value")) -add = a + b +First = int(input("enter first value")) +Second = int(input("enter second value")) +add = First + Second print(add)