Anurag Patibandla <anuragpatiband...@gmail.com> Wrote in message:

>     dicts = dict(lists)
>     print dicts
>     print dict[0]
> 
> Print dicts works as expected giving me the combine dictionary values. But 
> when I say dict[0]. I see the error:
> TypeError: 'type' object has no attribute '__getitem__'
> 

Of course. You forgot the s in the name dicts. So you were
 referring to the dict class, not your variable.
-- 
DaveA

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to