"Brad Hudson" wrote
> Given that you want more than one method I assume
> this is a homwework assignment
It's really more that I'm a newbie to python. Trying to translate
from perl
to python in my head...
OK, Thats fine, it just seemed odd that you asked for 3
solutions to the problem rath
On 5/17/2011 10:19 AM Brad Hudson said...
Thanks for the quick response Emile! However, this only seems to solve
part of the problem.
Yes -- I figured that by understanding the one-liner I replied with
you'd be able to construct the missing part. And then by restructuring
to a loop you'd ge
On Tue, May 17, 2011 at 12:10 PM, Alan Gauld wrote:
>
> Given that you want more than one method I assume
> this is a homwework assignment rather than a practical
> problem? If so we would prefer that you showed us what
> you tried and we can then help you fix it rather than
> just offer you solut
On Tue, May 17, 2011 at 11:30 AM, Emile van Sebille wrote:
> On 5/17/2011 8:58 AM Brad Hudson said...
>
> I'm new to python and have a need to convert a 'list of lists' to a
>> dictionary object. Can someone help me to convert data similar to the
>> following using two different examples of a li
"Brad Hudson" wrote
dictionary object. Can someone help me to convert data similar to
the
following using two different examples of a list comprehension and a
for
loop?
Given that you want more than one method I assume
this is a homwework assignment rather than a practical
problem? If so w
On 5/17/2011 8:58 AM Brad Hudson said...
I'm new to python and have a need to convert a 'list of lists' to a
dictionary object. Can someone help me to convert data similar to the
following using two different examples of a list comprehension and a for
loop?
Data is similar to the following:
[['n
I'm new to python and have a need to convert a 'list of lists' to a
dictionary object. Can someone help me to convert data similar to the
following using two different examples of a list comprehension and a for
loop?
Data is similar to the following:
[['name=server1', 'state=active', 'ncpu=8', 'me