thing new everyday from my coworkers. A great
> environment of cooperation, with lots of freedom to do the things your way.
> The developers work closely with game designers and artists, which is
> also rewarding and leads to better understandi
closely with game designers and artists, which is also
rewarding and leads to better understanding of the needs of the final game.
If any of this sounds interesting, you can send an email directly to
j...@joltonline.com or you can contact me if you prefer on this email
address.
Just for clarification, you can do it also with a dictionary, but with a
defaultdict you can append directly items to a list if it's not set.
---
Check my blog!
http://wrongsideofmemphis.wordpress.com
On Tue, Jul 27, 2010 at 2:48 PM, Jaime Buelta wrote:
> You can use a defaultdict to o
You can use a defaultdict to order the items and then convert that back
again to a nested list:
>>> from collections import defaultdict
>>> d = defaultdict(list)
>>> for i in x:
... d[i[0]].extend(i[1:])
...
>>> d
defaultdict(, {'NM100': [3, 4, 5, 6, 7, 10, 11, 12, 13],
'NM200': [15, 16, 17]})
>>
return
temp(hello)
I think this is what you are trying to achieve...
Best regards,
Jaime Buelta
On Thu, Apr 8, 2010 at 12:43 PM, anish thomas wrote:
> Hi Experts,
>
> Not sure , I am contacting the right alias for some clarifications on
> python.
> Am beginer and looking for