Compare commits
	
		
			No commits in common. "0ad4487115e35bd6c2246713b71f9c4778752e1e" and "270374ecdfba34460be3ef23e4982b416d3aff11" have entirely different histories.
		
	
	
		
			0ad4487115
			...
			270374ecdf
		
	
		
							
								
								
									
										13
									
								
								script.py
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								script.py
									
									
									
									
									
								
							@ -1,13 +0,0 @@
 | 
				
			|||||||
# Открываем data.txt и читаем содержимое
 | 
					 | 
				
			||||||
with open("data.txt", "r", encoding="utf-8") as file:
 | 
					 | 
				
			||||||
    lines = file.readlines()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Преобразуем данные: переводим в верхний регистр и сортируем
 | 
					 | 
				
			||||||
processed_lines = sorted(line.strip().upper() for line in lines)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Записываем результат в output.txt
 | 
					 | 
				
			||||||
with open("output.txt", "w", encoding="utf-8") as file:
 | 
					 | 
				
			||||||
    for line in processed_lines:
 | 
					 | 
				
			||||||
        file.write(line + "\n")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
print("Файл output.txt успешно создан!")
 | 
					 | 
				
			||||||
							
								
								
									
										1
									
								
								Часть 2
									
									
									
									
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										1
									
								
								Часть 2
									
									
									
									
									
								
							@ -1 +0,0 @@
 | 
				
			|||||||
Subproject commit 0cc09de42eb587f112285d06541294b379973039
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user