Files Preparation
Overview
Python is a fantastic language for processing data files and is frequently used in other disciplines for that exact purpose. Today is focused on how to work with text files.
Basic Learning Objectives
Before class, you should be able to:
- Open, read from, and write to a text file in Python
- Define csv format
Advanced Learning Objectives
After class, you should be able to:
- Use the
read
,readline
, andreadlines
methods appropriately - Solve problems that involve analyzing the content of files
- Solve problems that involve writing to files
Resources
You should read/watch the following and complete the embedded checks through Moodle:
- Runestone 10.1-10.4
- Runestone 10.8-10.10