Skip to content

Conversation

iezkiil
Copy link

@iezkiil iezkiil commented Dec 18, 2022

добавлен скрипт и текстовые файлы, необходимые для его работы
файл 5-ого задания генерируется скриптом и при многократном запуске дописывается им

input_file = f_write.write((input_text + '\n'))
f_write.close()
print('------------------------------------------------------------------------------------------')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

print(f'количество слов в строке {word_count}')
print(f'Количество строк в файле {lines_count}')
print('------------------------------------------------------------------------------------------')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

average_wage = average_wage / employee_count
print(f'средняя зарплата: {average_wage}')
print('------------------------------------------------------------------------------------------')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

result.write(rus_numb)
result.close()
print('------------------------------------------------------------------------------------------')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

result_sum = 0
for str_elem in count_sum_str.split():
result_sum = result_sum + int(str_elem)
print(f'Сумма чисел в файле: {result_sum}')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants