Readings

The readings for Tuesday, October 25 are:

  1. Automate the Boring Stuff with Python

  2. Python for Informatics: Exploring Information

Questions

Once you have completed these readings, please answer the following questions:

  1. What are the four basic operations you can perform on a file (handle)?

  2. Write some Python code that does each of the following:

    a. Reads all the contents of a file into a single string.

    b. Reads all the contents of a file into a list of strings.

    c. Prints out the contents of a file line-by-line.

Feedback

If you have any questions, comments, or concerns regarding the course, please provide your feedback here.

Submission

To submit your response, please edit the reading07/README.md file in your GitLab repository.