Compare commits
No commits in common. "0ce1ee1f00e50573d760dbe82c28d111b7227b71" and "main" have entirely different histories.
0ce1ee1f00
...
main
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.venv\
|
||||||
|
output.txt
|
@ -1 +1,3 @@
|
|||||||
Тут должно быть индивидуальное задание, но я не понял о чем речь.
|
Список группы:
|
||||||
|
Анохин Игорь Вячеславович;
|
||||||
|
Боровской Stepan Nikolаевич;
|
3
input.txt
Normal file
3
input.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
print("Hello, world!")
|
||||||
|
System.out.print("Hello, world!");
|
||||||
|
std::cout<<"Hello, world!";
|
@ -1,6 +0,0 @@
|
|||||||
numpy==2.2.3
|
|
||||||
pandas==2.2.3
|
|
||||||
python-dateutil==2.9.0.post0
|
|
||||||
pytz==2025.1
|
|
||||||
six==1.17.0
|
|
||||||
tzdata==2025.1
|
|
11
script.py
Normal file
11
script.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
with open("output.txt", "r", encoding="utf-8") as file:
|
||||||
|
lines = file.readlines()
|
||||||
|
|
||||||
|
# Преобразование: строки в верхний регистр
|
||||||
|
processed_lines = [line.upper() for line in lines]
|
||||||
|
|
||||||
|
# Запись результата в output.txt
|
||||||
|
with open("output.txt", "w", encoding="utf-8") as file:
|
||||||
|
file.writelines(processed_lines)
|
||||||
|
|
||||||
|
print("Данные успешно обработаны и сохранены в output.txt!")
|
Loading…
Reference in New Issue
Block a user