It's me wrote: > For this code snip: > > a=3 > .... > b=(1,len(a))[isinstance(a,(list,tuple,dict))] > > Why would I get a TypeError from the len function? What did you expect the "length" of the integer 3 to be? -Peter