How to solve programming exercises

In your work with exercises you may find the following guidelines for script writing useful.
  1. Construct an example on the functionality of the script, if that is not included in the problem description.
  2. Write very high-level pseudo code with words.
  3. Scan familiar examples for constructions and functionality that can come into use. The slide collection or the book (Python Scripting for Computational Science) are good sources as many of the exercises are just small perturbations of examples in this material.
  4. Look up man pages, reference manuals, FAQs, or textbooks (see below) for functionality you have minor familiarity with, or to clarify syntax details. The most relevant electronic documentation is available from the doc.html file.
  5. Search the Internet if the documentation from the previous point does not provide sufficient answers.
  6. If you still have problems finding the right information, think about other application areas that might need the functionality you seek and use that for an alternative information search.

Documentation: