From a17ca298df07d4b7326cf833dfb4a1a6de00f13f Mon Sep 17 00:00:00 2001 From: Jordan1-34 <131589592+Jordan1-34@users.noreply.github.com> Date: Sat, 3 Aug 2024 22:00:36 +0100 Subject: [PATCH] Update 031_list_modification.py --- 031_list_modification.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/031_list_modification.py b/031_list_modification.py index 8eac47bb..3676b07f 100644 --- a/031_list_modification.py +++ b/031_list_modification.py @@ -53,13 +53,16 @@ # I've started it for you. -print("") +print("append_item_to_list") print("Function: append_item_to_list") def append_item_to_list(the_list, item): the_list.append(item) return the_list +def check_that_these_are_equal(actual, expected): + assert actual == expected, f"Expected {expected}, but got {actual}" + check_that_these_are_equal( append_item_to_list(['a', 'b'], 'c'), ['a', 'b', 'c']) check_that_these_are_equal(