s = input("Введите строку: ")
with open('file.txt', 'a') as f:
f.writelines(s)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
s = input("Введите строку: ")
with open('file.txt', 'a') as f:
f.writelines(s)