From a1095cede52f11b7dfbf972a9d6852aaf4424085 Mon Sep 17 00:00:00 2001 From: Jordan1-34 <131589592+Jordan1-34@users.noreply.github.com> Date: Sat, 3 Aug 2024 21:42:23 +0100 Subject: [PATCH] Update 030_list_indexing.py --- 030_list_indexing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/030_list_indexing.py b/030_list_indexing.py index 034a63a2..e9178a28 100644 --- a/030_list_indexing.py +++ b/030_list_indexing.py @@ -18,13 +18,16 @@ # == Exercise One == -print("") +print("get_first_item") print("Function: get_first_item") def get_first_item(the_list): # Return the first item of the list pass +def check_that_these_are_equal(actual, expected): + assert actual == expected, f"Expected {expected}, but got {actual}" + check_that_these_are_equal( get_first_item(["a", "b", "c", "d", "e"]), "a"