Compare commits

...

No commits in common. "master" and "main" have entirely different histories.
master ... main

5 changed files with 2 additions and 31 deletions

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
.venv/
output.txt

View File

@ -1 +1,2 @@
Задание: считать данные из файла data.txt, провести сортировку чисел по убыванию
# py_repo

View File

@ -1,12 +0,0 @@
13
8
11
25
1005
581
42
66
81
9
1
852

View File

@ -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

View File

@ -1,10 +0,0 @@
with open('data.txt', 'r') as file:
lines = file.readlines()
numbers = [int(line.strip()) for line in lines]
sorted_numbers = sorted(numbers, reverse=True)
with open('output.txt', 'w') as output_file:
for number in sorted_numbers:
output_file.write(f"{number}\n")