Solve 6.19 LAB

This commit is contained in:
Joe S 2021-02-14 19:46:58 -05:00
parent b7f73fb1f0
commit 23eec468cf
1 changed files with 9 additions and 0 deletions

9
6/6.19 LAB/main.py Normal file
View File

@ -0,0 +1,9 @@
replacement_list = dict((k.strip(), v.strip()) for k,v in
(item.split() for item in input().split(' ')))
lab_text = input()
for element in replacement_list:
lab_text = lab_text.replace(element, replacement_list[element])
print(lab_text)