A Python Course Uta Priss



This is a generic version of a class "Computer Programming for Information Management" that I taught twice a year at the School of Library and Information Science, Indiana University Bloomington. The materials in this course are mostly self-explanatory and can be used for self study. (There are some references in the materials to Indiana University accounts and settings which should be ignored.)

Notes: 1) The materials in this course are copyrighted.

2) Please only contact me in case you find errors in the text or have comments. Please, don't contact me with questions about how to solve the exercises.

3) I will not be responsible for any possible damage that any of the scripts and exercises in this course may have. This holds especially for CGI scripts that may pose security risks on a web server. It is up to the person who uses any of the materials in this course, to use the materials in a safe environment and to keep up to date with CGI security recommendations.

Week 1. Programming basics

Exercises Answers Week 2. Operators and if statements

Exercises Answers Week 3. Logical expressions and Objects

Exercises Answers Week 4. Program design and control structures

Exercises Answers Week 5. Lists, Dictionaries and File handling

Exercises Answers Week 6. CGI I

Exercises Answers Week 7. Regular expressions I

Exercises Answers Week 8. Regular expressions II

Exercises Answers Week 9. CGI II: Environment Variables and Security

Exercises Answers Week 10. Programming in the large

Exercises Answers Week 11. CGI III: Cookies and Hidden Text

Exercises Answers Week 12. A Python networking client