Skip to content

Commit 35c6a78

Browse files
Create S2.py
1 parent c7b34e5 commit 35c6a78

File tree

1 file changed

+13
-0
lines changed
  • 2006/Python/Senior Problems

1 file changed

+13
-0
lines changed

2006/Python/Senior Problems/S2.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
i = input()
2+
cipher = input()
3+
dict1 = {}
4+
for e,t in enumerate(i):
5+
dict1[cipher[e]] = t
6+
code = input()
7+
answer = ''
8+
for t in code:
9+
try:
10+
answer+=dict1[t]
11+
except:
12+
answer+='.'
13+
print(answer)

0 commit comments

Comments
 (0)