numbers = input('Введите числа через пробел')

with open(r"lesson_5/text_5.txt", "w+") as write_f:
    write_f.write(f'{numbers}')
    write_f.seek(0)
    content = write_f.read().split()
    sum_numbers = [int(i) for i in content]

print(sum(sum_numbers))

42cabc8039df3cb044d1d11667573736f59b9661
<mask token>

<mask token>
with open('lesson_5/text_5.txt', 'w+') as write_f:
    write_f.write(f'{numbers}')
    write_f.seek(0)
    content = write_f.read().split()
    sum_numbers = [int(i) for i in content]
print(sum(sum_numbers))

numbers = input('Введите числа через пробел')
with open('lesson_5/text_5.txt', 'w+') as write_f:
    write_f.write(f'{numbers}')
    write_f.seek(0)
    content = write_f.read().split()
    sum_numbers = [int(i) for i in content]
print(sum(sum_numbers))

numbers = input('Введите числа через пробел')

with open(r"lesson_5/text_5.txt", "w+") as write_f:
    write_f.write(f'{numbers}')
    write_f.seek(0)
    content = write_f.read().split()
    sum_numbers = [int(i) for i in content]

print(sum(sum_numbers))
