Добавлены файлы data.txt, script.py
This commit is contained in:
parent
aa40169c49
commit
440fa57a13
10
2.py
Normal file
10
2.py
Normal file
@ -0,0 +1,10 @@
|
||||
with open('C:\GITPRACTIC/data.txt', 'r', encoding='utf-8') as file:
|
||||
content = file.read()
|
||||
|
||||
content=content.split()
|
||||
|
||||
content = [i.upper() for i in content]
|
||||
|
||||
with open('C:\GITPRACTIC/output.txt', 'w', encoding='utf-8') as file:
|
||||
for line in content:
|
||||
file.write(line + '\n')
|
Loading…
Reference in New Issue
Block a user