From 731c91356dcb5738644e364d0188894d951d3405 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nils=20Forss=C3=A9n?= Date: Mon, 7 Feb 2022 08:53:26 +0100 Subject: [PATCH] c --- laboration3/uppgift_1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.30.2