создать фаил ворд и сохранить в него погоду в москве
import requests from docx import Document def create_doc(text): document = Document() document.add_heading('Pogoda v Moskve', 0) document.add_paragraph(text) document.save('pogoda.docx') url = 'http://wttr.in/Moscow' response = requests.get(url) create_doc(response.text)