Python Reading
- Read the chapter entitled Files
from section "Alternative File Reading Methods" through section "Writing Text Files".
Key Ideas
- File Reading Methods
- filevar.readline() - in conjunction with a while loop to read
an entire file
- filevar.readlines()
- File Writing Methods
- filevar.write(some_string)
- Experiment with census-2.py and
census.txt until you fully understand
census-2.py
Active Learning