Ответ:
with open ("Inf1.txt", "w") as x:
x.write("Привет")
with open ("Inf1.txt","r") as f:
t = ""
f = f.read()
f = f.split("\n")
for i in f:
t += i
print(i[:5])
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
with open ("Inf1.txt", "w") as x:
x.write("Привет")
with open ("Inf1.txt","r") as f:
t = ""
f = f.read()
f = f.split("\n")
for i in f:
t += i
print(i[:5])