html_tpl = """ <body> <h1>{0}</h1> {1} </body> """ for article in articles: output = article.format(article.title, article.body) some_things_with_output(output)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 9, in <module> NameError: name 'articles' is not defined