From: Nils Forssén Date: Mon, 7 Feb 2022 07:53:26 +0000 (+0100) Subject: c X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=731c91356dcb5738644e364d0188894d951d3405;p=TDDE44.git c --- diff --git a/laboration3/uppgift_1.py b/laboration3/uppgift_1.py index 8d47d9d..345b740 100644 --- a/laboration3/uppgift_1.py +++ b/laboration3/uppgift_1.py @@ -4,7 +4,7 @@ def key_exists(key, d): return key in d -def value_exists(value, d): +def value_exists1(value, d): return value in d.values() @@ -32,7 +32,7 @@ def add_to_value_list1(key, value, d): d[key].append(value) -def return_value_list2(prefix, d): +def return_value_list1(prefix, d): tot = [] for k, v in d.items(): if k[:len(prefix)] == prefix: