translate = {}
russian = ["делать", "дом", "домашняя папка", "изготавливать", "изготавливать", "кошки", "манипулятор мышь", "мышь", "собака"]
english = ["to do", "home", "home", "to do", "to make", "cat", "mouse", "mouse", "dog"]
n = len(russian)
for i in range(0, n):
if russian[i] in translate:
translate[russian[i]].append(english[i])
else:
translate[russian[i]] = [english[i]]
if english[i] in translate:
translate[english[i]].append(russian[i])
translate[english[i]] = [russian[i]]
translate = {}
russian = ["делать", "дом", "домашняя папка", "изготавливать", "изготавливать", "кошки", "манипулятор мышь", "мышь", "собака"]
english = ["to do", "home", "home", "to do", "to make", "cat", "mouse", "mouse", "dog"]
n = len(russian)
for i in range(0, n):
if russian[i] in translate:
translate[russian[i]].append(english[i])
else:
translate[russian[i]] = [english[i]]
if english[i] in translate:
translate[english[i]].append(russian[i])
else:
translate[english[i]] = [russian[i]]