projects
/
TDDE44.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f7e37a
)
c
author
Nils Forssén
<forssennils@gmail.com>
Mon, 7 Feb 2022 07:53:26 +0000
(08:53 +0100)
committer
Nils Forssén
<forssennils@gmail.com>
Mon, 7 Feb 2022 07:53:26 +0000
(08:53 +0100)
laboration3/uppgift_1.py
patch
|
blob
|
history
diff --git
a/laboration3/uppgift_1.py
b/laboration3/uppgift_1.py
index 8d47d9dd4617b3f24f9711cb30a7e395c0a32e95..345b74042c998dcaa91cc685789abbf6e844a141 100644
(file)
--- 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_exists
1
(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_list
2
(prefix, d):
+def return_value_list
1
(prefix, d):
tot = []
for k, v in d.items():
if k[:len(prefix)] == prefix: