Course Home
Announcements
Check Yourself
Python Errors in English
CodeSkulptor FAQ
Reflections

Online Lessons

Related Links

Online Development

Lessons

Reference

eBooks

File I/O

Files discussed in the videos

Download the google-python-exercises.zip file and unzip it someplace where you can work on it. Watch the videos below to see how to use them as you work along with the video.

Following the video lessons on windows

Following the video lessons on a mac

Some Useful Unix Commands

  • cd - change directory
  • ls - list directory contents
  • cp - copy files and directories
  • mv - move (rename) files
  • touch - change file timestamps
  • help - display information about builtin commands
  • man - an interface to the on-line reference manuals

File I/O Lessons

Quizlet

Quiz

Test your file I/O knowledge with this quiz

CodeAcademy

FILE INPUT AND OUTPUT

Word Count

Here is the programming assignment that Nick Parlante gave after the first half of the Google Python Course

The file that goes with the exercise is the wordcount.py file from google-Python-exercises.zip in the basic folder.

Here is the way I completed the word count assignment.

Mimic

This is an optional assignment given in addition to Word Count.

If you want to give it a try, you can use the mimic.py file from google-Python-exercises.zip file and try in the basic folder.