#напиши здесь свою программу with open('quotes.txt','r',encoding='utf-8') as file: data = file.read() print(data) autor = input('Кто автор этих строк?') with open('quotes.txt','a',encoding='utf-8') as file: file.write('(' + autor + ')'+ '\n') while True: answer = input('Хотите ли добавить еще цитату? (да/нет)') answer = answer.lower() if answer == 'да': quote = input('Введите цитату ') autor = input('Введите автора ') file = open('quotes.txt','a',encoding='utf-8') file.write(quote+'\n'+autor+'\n') file.close() else: break with open('quotes.txt','r',encoding='utf-8') as file: for line in file: print(line)