with open('file.txt',encoding='utf8') as file:
file_data file.readlines()
for line in file_data:
login = line.split(':')[0]
password = line.split(':')[1]
with open('result.txt','a', encoding='utf8') as file_2:
file_2.write(login + ':' + password + "\n")