forked from stud179274/Practice
		
	Compare commits
	
		
			6 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0ad4487115 | |||
| 53e3db83c2 | |||
| f8f308993a | |||
| a6999dfe76 | |||
| 270374ecdf | |||
| 9eb930ac94 | 
@ -1,3 +1,3 @@
 | 
				
			|||||||
Сюзева Елизавета Дмитриевна
 | 
					Сюзева Елизавета Дмитриевна
 | 
				
			||||||
Ксения
 | 
					Басаргина Ксения Романовна 
 | 
				
			||||||
Злата
 | 
					Злата
 | 
				
			||||||
							
								
								
									
										13
									
								
								script.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								script.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					# Открываем 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
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										1
									
								
								Часть 2
									
									
									
									
									
										Submodule
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					Subproject commit 0cc09de42eb587f112285d06541294b379973039
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user