From d46c14d1a70a8dee0dd5c9270f8b9e0deaf52e20 Mon Sep 17 00:00:00 2001 From: dilsahsule Date: Fri, 19 Dec 2025 21:13:38 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=C3=96dev:=20circle=5Farea=20fonksiyonu=20t?= =?UTF-8?q?amamland=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/demo.py b/demo.py index 4592eec..f362bbe 100644 --- a/demo.py +++ b/demo.py @@ -1,5 +1,9 @@ +"""Demo module: circle area calculation""" +import math def circle_area(radius): - """Returns the area of the circle of given radius""" - pass # YOUR CODE HERE + """Calculate the area of a circle given its radius.""" + if radius < 0: + return 0 + return math.pi * radius**2 From 44cc94d9ec7595f51d11b5584ff1ff65d54db0fd Mon Sep 17 00:00:00 2001 From: dilsahsule Date: Fri, 19 Dec 2025 21:18:11 +0300 Subject: [PATCH 2/2] Kutlama notu eklendi --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d9ec3f8..56184c2 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,4 @@ git add demo.py git commit --message "Solved the first challenge of the workintech :)" git push origin master ``` - +## Tamamlandı 🎉