For this code snip:
a=3
.....
b=(1,len(a))[isinstance(a,(l ist,tuple,dict) )]
Why would I get a TypeError from the len function?
Thanks,
a=3
.....
b=(1,len(a))[isinstance(a,(l ist,tuple,dict) )]
Why would I get a TypeError from the len function?
Thanks,
Comment