Как вернуть ключ значения i?
from textwrap import wrap
def decryption(d):
a = str(32 + d)
b = str(48 + d)
c = str(25 + d)
f = str(94 + d)
dict = {'а': a, 'б': b, 'в': c, 'г': f}
word = str(input('Enter the decryption word:'))
def get_key(dict, word):
a = wrap(word, 2)
for i in a:
if i in dict.values():
return ????
print(get_key(dict, word))
decryption(1)