From 58b3142b5541e03b366e6727c3f3a4cb99f817e3 Mon Sep 17 00:00:00 2001 From: Derderderr Date: Sun, 15 Feb 2026 23:48:33 +0800 Subject: [PATCH 1/2] Update Calculate resistance.py Allow float --- Calculate resistance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From bd5e214d9c298b98348e3f9632505cc0efacdce0 Mon Sep 17 00:00:00 2001 From: Aljubina Date: Mon, 16 Feb 2026 10:36:53 +0530 Subject: [PATCH 2/2] renamed the variables --- calci.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)