Skip to content

Commit c232419

Browse files
Day 8: Dictionaries and Maps
1 parent 7bee9f1 commit c232419

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Day 8: Dictionaries and Maps.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Enter your code here. Read input from STDIN. Print output to STDOUT
2+
n = input()
3+
dict = {}
4+
for i in range(int(n)):
5+
s = input().split(" ")
6+
dict[s[0]] = s[1]
7+
while True:
8+
try:
9+
a = input()
10+
str = a + "=" + dict.get(a,"Not found")
11+
if(dict.get(a,"Not found")=="Not found"):
12+
str = "Not found"
13+
print(str)
14+
except EOFError as e:
15+
break
16+
17+

0 commit comments

Comments
 (0)