import urllib.request
import json
def yatrl(word):
link_one = 'https://t...content-available-to-author-only...x.net/api/v1.5/tr.json/translate?key='
link_two = 'trnsl.1.1.20150103T143421Z.56fe13b7247ddb54.19bc22fe11e70a50d34cf3a3450c7287d64aa3e5&text='
link_three = '&lang=en-ru&[format=plain]'
return ''.join([i+', ' for i in json.loads(urllib.request.urlopen(link_one+link_two+word+link_three).read().decode()).get('text')]).strip(', ')
while True:
my_word = input('Введите ваше слово здесь: ')
print(yatrl(my_word))
aW1wb3J0IHVybGxpYi5yZXF1ZXN0CmltcG9ydCBqc29uCmRlZiB5YXRybCh3b3JkKToKICAgIGxpbmtfb25lID0gJ2h0dHBzOi8vdC4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ueC5uZXQvYXBpL3YxLjUvdHIuanNvbi90cmFuc2xhdGU/a2V5PScKICAgIGxpbmtfdHdvID0gJ3RybnNsLjEuMS4yMDE1MDEwM1QxNDM0MjFaLjU2ZmUxM2I3MjQ3ZGRiNTQuMTliYzIyZmUxMWU3MGE1MGQzNGNmM2EzNDUwYzcyODdkNjRhYTNlNSZ0ZXh0PScKICAgIGxpbmtfdGhyZWUgPSAnJmxhbmc9ZW4tcnUmW2Zvcm1hdD1wbGFpbl0nCiAgICByZXR1cm4gJycuam9pbihbaSsnLCAnIGZvciBpIGluIGpzb24ubG9hZHModXJsbGliLnJlcXVlc3QudXJsb3BlbihsaW5rX29uZStsaW5rX3R3byt3b3JkK2xpbmtfdGhyZWUpLnJlYWQoKS5kZWNvZGUoKSkuZ2V0KCd0ZXh0JyldKS5zdHJpcCgnLCAnKQp3aGlsZSBUcnVlOgogICAgbXlfd29yZCA9IGlucHV0KCfQktCy0LXQtNC40YLQtSDQstCw0YjQtSDRgdC70L7QstC+INC30LTQtdGB0Yw6ICcpCiAgICBwcmludCh5YXRybChteV93b3JkKSk=