Compare commits
No commits in common. "4b5d800ec2cfc43123ffa093478234aaacfbefcc" and "11c43cf4fe09cd0702b2bde46319f13b3a1350f4" have entirely different histories.
4b5d800ec2
...
11c43cf4fe
4
output.txt
Normal file
4
output.txt
Normal file
@ -0,0 +1,4 @@
|
||||
МОЛОКО
|
||||
ХЛЕБ
|
||||
ЙОГУРТ
|
||||
КОНФЕТЫ
|
||||
6
requirements.txt
Normal file
6
requirements.txt
Normal file
@ -0,0 +1,6 @@
|
||||
numpy==2.3.3
|
||||
pandas==2.3.2
|
||||
python-dateutil==2.9.0.post0
|
||||
pytz==2025.2
|
||||
six==1.17.0
|
||||
tzdata==2025.2
|
||||
15
script.py
Normal file
15
script.py
Normal file
@ -0,0 +1,15 @@
|
||||
# script.py
|
||||
|
||||
# 1. Открываем файл data.txt и читаем строки
|
||||
with open("data.txt", "r", encoding="utf-8") as f:
|
||||
lines = f.readlines()
|
||||
|
||||
# 2. Преобразуем строки — сделаем все буквы заглавными
|
||||
processed_lines = [line.strip().upper() for line in lines]
|
||||
|
||||
# 3. Запишем результат в новый файл output.txt
|
||||
with open("output.txt", "w", encoding="utf-8") as f:
|
||||
for line in processed_lines:
|
||||
f.write(line + "\n")
|
||||
|
||||
print("Готово! Результат записан в output.txt")
|
||||
1
tsest_rep
Submodule
1
tsest_rep
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 946c54400afecdaf27b5bb931d6d8f976ba85297
|
||||
Loading…
Reference in New Issue
Block a user