From 9d100a209c360257fc95f2eaf811c95c03cf7e0b Mon Sep 17 00:00:00 2001 From: HiteshDubey Date: Wed, 12 Mar 2025 12:39:21 +0530 Subject: [PATCH] fixed bugs in your main function file --- functions.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/functions.py b/functions.py index 7cdbb28..adf42c0 100644 --- a/functions.py +++ b/functions.py @@ -1,9 +1,9 @@ def add(a, b): return a + b - -def subtract(a, b): - return a + b +## corrected with substract sign +def substract(a, b): + return a - b def multiply(a, b): @@ -11,4 +11,8 @@ def multiply(a, b): def convert_fahrenheit_to_celsius(fahrenheit): - return multiply(subtract(fahrenheit, 32), 9 / 5) + return multiply(substract(fahrenheit, 32), 5 / 9) ## corrected the with right formula + + + +print(convert_fahrenheit_to_celsius(273))