lines = [line.strip('\n') for line in file]
for source in lines:
    print(source)
for source in lines:
    link = 'https://{}/result'.format(source)
print(link)
использование переменной в URL-адресе в python