From e63a0cf7c017d1817d41b6e05962ca78aac16f00 Mon Sep 17 00:00:00 2001 From: Divya <12871391+divya0795@users.noreply.github.com> Date: Thu, 26 Nov 2026 14:40:09 -0800 Subject: [PATCH 1/4] Add first commit for divya0795 --- first-commits/divya0795.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 first-commits/divya0795.py diff --git a/first-commits/divya0795.py b/first-commits/divya0795.py new file mode 100644 index 0000000..d2032b9 --- /dev/null +++ b/first-commits/divya0795.py @@ -0,0 +1,3 @@ +name = "Divya" +github = "divya0795" +message = "Testing the course from a second account From ec2f892fb0f8844cc7caff1faa88588ed460df96 Mon Sep 17 00:00:00 2001 From: Divya <12871391+divya0795@users.noreply.github.com> Date: Thu, 26 Nov 2026 14:40:42 -0800 Subject: [PATCH 2/4] Fix missing quote --- first-commits/divya0795.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-commits/divya0795.py b/first-commits/divya0795.py index d2032b9..4783739 100644 --- a/first-commits/divya0795.py +++ b/first-commits/divya0795.py @@ -1,3 +1,3 @@ name = "Divya" github = "divya0795" -message = "Testing the course from a second account +message = "Testing the course from a second account" From 1f0cf6ebdccdf825dc007d6ddf4d932143cdeecc Mon Sep 17 00:00:00 2001 From: Divya Chukkapalli <12871391+divya0795@users.noreply.github.com> Date: Thu, 26 Nov 2026 14:41:41 -0800 Subject: [PATCH 3/4] Add exercise 2 greeting for divya0795 --- practice/greetings/divya0795.py | 6 ++++++ practice/tests/test_divya0795.py | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 practice/greetings/divya0795.py create mode 100644 practice/tests/test_divya0795.py diff --git a/practice/greetings/divya0795.py b/practice/greetings/divya0795.py new file mode 100644 index 0000000..2d7b2de --- /dev/null +++ b/practice/greetings/divya0795.py @@ -0,0 +1,6 @@ +"""Greeting for divya0795.""" + + +def greet(name: str) -> str: + """Return a friendly greeting for name.""" + return f"Hello, {name}! Welcome to open source." diff --git a/practice/tests/test_divya0795.py b/practice/tests/test_divya0795.py new file mode 100644 index 0000000..1b5dcde --- /dev/null +++ b/practice/tests/test_divya0795.py @@ -0,0 +1,5 @@ +from greetings.divya0795 import greet + + +def test_greet_includes_name(): + assert "Sam" in greet("Sam") From 428f53eacc0476f24a07ac0d87e5f914f6d4ad44 Mon Sep 17 00:00:00 2001 From: Divya Chukkapalli <12871391+divya0795@users.noreply.github.com> Date: Thu, 26 Nov 2026 15:47:22 -0800 Subject: [PATCH 4/4] Add a second test for divya0795 --- practice/tests/test_divya0795.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/practice/tests/test_divya0795.py b/practice/tests/test_divya0795.py index 1b5dcde..a35878a 100644 --- a/practice/tests/test_divya0795.py +++ b/practice/tests/test_divya0795.py @@ -3,3 +3,7 @@ def test_greet_includes_name(): assert "Sam" in greet("Sam") + + +def test_greet_empty_name_returns_string(): + assert isinstance(greet(""), str)