From c6ff44cfa6f711a1aceef02054dea0c0d9692444 Mon Sep 17 00:00:00 2001 From: rachealben <133984839+rachealben@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:10:12 +0100 Subject: [PATCH] Update 025_string_concatenation.py --- 025_string_concatenation.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/025_string_concatenation.py b/025_string_concatenation.py index 03e17397..31fed6f2 100644 --- a/025_string_concatenation.py +++ b/025_string_concatenation.py @@ -58,8 +58,14 @@ def greet(name): # Return the string "Hello, Kay!" where "Kay" is the # name provided - pass - + return "Hello, " + name + "!" + +# Function to check if two values are equal +def check_that_these_are_equal(value1, value2): + if value1 == value2: + print("Test Passed!") + else: + print("Test Failed!") check_that_these_are_equal( greet("Chuang-tzu"), "Hello, Chuang-tzu!"