[Tutor] Python Block

Alan Gauld alan.gauld at freenet.co.uk
Sat Aug 12 11:23:38 CEST 2006


> Hooray, right?! However, my real problem is dealing with another
> dimension of data. So suppose I can access the following data:
> 
> "5100", "foo"
> "5100", "-"
> "5100", "-"
> "5100", "-"
> "5200", "foo"
> "5200", -

Hint: Dictionaries can be keyed by tuples too.
 
>( 5100,  -)  :  3

Does that help?

Alan G.


More information about the Tutor mailing list