Caroline Poetry File Exercise

by Caroline Hall

05 Jun 2017

Here’s my embedded link:

Overall, this exercise was relatively straightforward. I’m hoping I included the writing program correctly because when I print my file like the example in the chapter 7 notes (where this is returned: <_io.TextIOWrapper name="output.txt" mode="w" encoding="cp1252">), I get a result like this: <closedfile 'caroline', mode '[object Object]'>. However, the poem saves to a neat, uniquely named text file that appears next to my main.py. So the program works and creates the desired result, but the print statement returns something different.

Caroline is a first year Information Science Master's Candidate. She is passionate about renewable energy and the environment. She spends the majority of her time outside of class working for Strata Solar, a national solar farm developer, and United Solar Initiative, an international solar nonprofit. Find Caroline Hall on Twitter, Github, and on the web.