Educational Materials

Basic Python Exercises

There are 3 exercises that go with the first sections of Google's Python class. They are located in the "basic" directory within the google-python-exercises directory. Download the if you have not already (see the Set-Up page for details).

  • -- complete the string functions in, based on the material in the Python Strings section (additional exercises available in
  • -- complete the list functions in, based on the material in the Python Lists and Python Sorting sections (additional exercises available in
  • -- this larger, summary exercise in combines all the basic Python material in the above sections plus Python Dicts and Files (a second exercise is available in

    With all the exercises, you can take a look at our solution code inside the solution subdirectory.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.