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(