On Tue, Jan 12, 2016 at 3:32 PM, Peter Otten <__pete...@web.de> wrote:
>
> If there is exactly one item you can unpack:
>
>>>> d = {"Wilf's Cafe": 1}
>>>> k, = d.values()
>>>> k
> 1
>

I personally don't like that trailing comma, it just looks wrong
there. But this is very neat.

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

Reply via email to