Загрузить файлы в «/»
This commit is contained in:
		
							parent
							
								
									76ee4f92b5
								
							
						
					
					
						commit
						1ec929f17e
					
				
							
								
								
									
										2
									
								
								.gitignore.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.gitignore.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| .vevn/ | ||||
| output.txt | ||||
| @ -1,3 +1 @@ | ||||
| Койков Антон Иванович | ||||
| Андрей | ||||
| Янактаева Виктория Евгеньевна | ||||
| Вариант : Установите numpy и pandas | ||||
							
								
								
									
										4
									
								
								output.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								output.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| МОЛОКО | ||||
| ХЛЕБ | ||||
| КОЛБАСА | ||||
| ЧЕХОСЛОВАКИЯ | ||||
							
								
								
									
										9
									
								
								script.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								script.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | ||||
| with open('data.txt', 'r', encoding='utf-8') as input_file: | ||||
|     lines = input_file.readlines() | ||||
| 
 | ||||
| upper_case_lines = [line.upper() for line in lines] | ||||
| 
 | ||||
| with open('output.txt', 'w', encoding='utf-8') as output_file: | ||||
|     output_file.writelines(upper_case_lines) | ||||
| 
 | ||||
| print("Данные успешно преобразованы и записаны в output.txt.") | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user