Upload files to "/"
This commit is contained in:
parent
f83ccefadd
commit
024c950020
12
script.py
Normal file
12
script.py
Normal file
@ -0,0 +1,12 @@
|
||||
def main():
|
||||
with open('data.txt', 'r') as file:
|
||||
data = file.readlines()
|
||||
numbers = [int(line.strip()) for line in data if line.strip().isdigit()]
|
||||
sorted_numbers = sorted(numbers)
|
||||
|
||||
with open('output.txt', 'w') as outfile:
|
||||
for number in sorted_numbers:
|
||||
outfile.write(f"{number}\n")
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
BIN
Скрины.docx
Normal file
BIN
Скрины.docx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user