Нужно написать код Пайтон 3, чтоб каждого в одну строку, убрать так сказать ненужные новые строки:::
Мой неработающий код:
file = open('текстовыйфайл', ‘r’)
c = file.readlines()
for line in c:
print(''.join(line.strip()))
Сам список еще длинный тут для примера взял несколько
Нужно чтоб из этого :
12:01:0827635 Настя
20.00.0000 ifggggggg ggggggggggg
gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
12:01:0827635 Лера
20.00.0000 jifggggggg ggggggggggg
gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
12:01:0827635 Дима
20.00.0000 jifggggggg ggggggggggg
gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
12:01:0827635 Саня
20.00.0000 ifggggggg ggggggggggg
gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
выводило этооо::: инфа про каждого в одну строку
12:01:0827635 Настя 20.00.0000 ifggggggg ggggggggggg gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
12:01:0827635 Лера 20.00.0000 jifggggggg ggggggggggg gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
12:01:0827635 Дима 20.00.0000 jifggggggg ggggggggggg gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf
12:01:0827635 Саня 20.00.0000 ifggggggg ggggggggggg gggggggggggggggg ggggggggggggggggggg ggggggggggggggggg ggggggggggggggggggggggggg gfgfgfgfgfgf