Klaus Alexander Seistrup wrote: > The variable key should be a string, you're supplying a tupple. Not at all. Tuples (or any immutable object) make fine dictionary keys. The original problem is almost undoubtedly indentation (tabs & spaces, with editor interpretation out of sync with Python's). - Gordon