From 39c9c65eeca73bdd7fc2626970398750d6769e55 Mon Sep 17 00:00:00 2001 From: "Mr. Enrico" Date: Wed, 23 Feb 2022 10:04:39 -0500 Subject: [PATCH 1/7] Add formula for circumference to main.py --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c30e4a4..39ba9c8 100644 --- a/main.py +++ b/main.py @@ -1 +1,4 @@ -PI = 3 +PI = 3.1415927 + +def circumference(radius): + return 2 * PI * radius From 38f3ea36cff32755a6f4bbacbcc2d6d2899826f2 Mon Sep 17 00:00:00 2001 From: BenjaminDiaz7 <> Date: Wed, 23 Feb 2022 19:44:43 +0000 Subject: [PATCH 2/7] changed the value of pi in circumference branch --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 39ba9c8..d5958dc 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -PI = 3.1415927 +PI = 3.14 def circumference(radius): return 2 * PI * radius From 0ec304a7af6e8c9af8d9a6542e3fee3f347dbb1a Mon Sep 17 00:00:00 2001 From: BenjaminDiaz7 <> Date: Wed, 23 Feb 2022 19:45:20 +0000 Subject: [PATCH 3/7] changed something again --- main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main.py b/main.py index e45f4bd..2805a62 100644 --- a/main.py +++ b/main.py @@ -2,8 +2,3 @@ def area(radius): return PI * radius ** 2 - -PI = 3.14 - -def circumference(radius): - return 2 * PI * radius From 49ff9a24c4eda40805851028698ad92b9e8ceac9 Mon Sep 17 00:00:00 2001 From: BenjaminDiaz7 <> Date: Wed, 23 Feb 2022 19:48:00 +0000 Subject: [PATCH 4/7] re-added circumference formula after an error --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2805a62..430be98 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ PI = 3.14 -def area(radius): - return PI * radius ** 2 +def circumference(diameter): + return PI * diameter From a585320f21ce688096c10555eed92dc735c877be Mon Sep 17 00:00:00 2001 From: BenjaminDiaz7 <> Date: Wed, 23 Feb 2022 19:49:08 +0000 Subject: [PATCH 5/7] fixed another error --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 430be98..2805a62 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ PI = 3.14 -def circumference(diameter): - return PI * diameter +def area(radius): + return PI * radius ** 2 From 7ea7caed384ebc60825a67ee1efc87243018179a Mon Sep 17 00:00:00 2001 From: BenjaminDiaz7 <> Date: Wed, 23 Feb 2022 19:49:51 +0000 Subject: [PATCH 6/7] changed the formula to a new line --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 430be98..b639b99 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,7 @@ PI = 3.14 + + + def circumference(diameter): - return PI * diameter + return PI * diameter \ No newline at end of file From ae89f51b658c19a5b1e4cad056c6cf3563a39c49 Mon Sep 17 00:00:00 2001 From: Benjamin Diaz <90220802+BenjaminCanCode@users.noreply.github.com> Date: Wed, 23 Feb 2022 19:52:24 +0000 Subject: [PATCH 7/7] after a lot of trials, i fixed the error with pi values and got the formulas to co-inside. --- .replit | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .replit diff --git a/.replit b/.replit new file mode 100644 index 0000000..2aff877 --- /dev/null +++ b/.replit @@ -0,0 +1,2 @@ +language = "bash" +run = "" \ No newline at end of file