On Monday, 28 September 2009 18:54:09 Scott wrote:
I am new to Python but I have studied hard and written a fairly big
(to me) script/program. I have solved all of my problems by Googling
but this one has got me stumped.
I want to check a string for a substring and if it exists I want to
Hendrik van Rooyen wrote:
On Monday, 28 September 2009 18:54:09 Scott wrote:
I am new to Python but I have studied hard and written a fairly big
(to me) script/program. I have solved all of my problems by Googling
but this one has got me stumped.
I want to check a string for a substring and
On Sep 28, 7:37 pm, Scott scott.freem...@gmail.com wrote:
On Sep 28, 2:00 pm, Dave Angel da...@ieee.org wrote:
Scott wrote:
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff). (or [var]
if I'm looping through the dict)
I am new to Python but I have studied hard and written a fairly big
(to me) script/program. I have solved all of my problems by Googling
but this one has got me stumped.
I want to check a string for a substring and if it exists I want to
create a new, empty list using that substring as the name
2009/9/28 Scott scott.freem...@gmail.com:
I am new to Python but I have studied hard and written a fairly big
(to me) script/program. I have solved all of my problems by Googling
but this one has got me stumped.
I want to check a string for a substring and if it exists I want to
create a
Scott scott.freem...@gmail.com wrote:
for X in open(file1):
Do a test.
If true:
Y = re.split( , X)
Z = Y[0] # This is a string, maybe it is Line42
Z = [] # This doesn't work, I want a new, empty
list created called Line42 not Z.
Is
Scott wrote:
I am new to Python but I have studied hard and written a fairly big
(to me) script/program. I have solved all of my problems by Googling
but this one has got me stumped.
I want to check a string for a substring and if it exists I want to
create a new, empty list using that
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff). (or [var]
if I'm looping through the dict)
This is cool and should do the trick!
-Scott Freemire
disclosure - Ok, I'm new to *any* language. I've been teaching myself
for about 3
2009/9/28 Scott scott.freem...@gmail.com:
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff). (or [var]
if I'm looping through the dict)
This is cool and should do the trick!
-Scott Freemire
disclosure - Ok, I'm new to *any*
Scott wrote:
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff). (or [var]
if I'm looping through the dict)
This is cool and should do the trick!
-Scott Freemire
disclosure - Ok, I'm new to *any* language. I've been teaching
Scott wrote:
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff).
The keys are strings, so
dictname['line42'].append(new stuff)
or
for key in dictname.keys():
...
dictname[key]
tjr
--
That should actually be dictname[line42].append(new stuff). Notice
the quotes around line42.
Good luck! Python is a fine language, I hope you like it.
~Ethan~
Doh. I sent it before my type, fail, fix cycle had taken place.
Got it.
Thanks again all!
--
Scott wrote:
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff). (or [var]
if I'm looping through the dict)
Nope, you still haven't gotten it. Of course, I really don't know where
you're going wrong, since you didn't use the
On Sep 28, 2:00 pm, Dave Angel da...@ieee.org wrote:
Scott wrote:
Thank you fine folks for getting back with your answers!
So down the road I do dictname[line42].append(new stuff). (or [var]
if I'm looping through the dict)
Nope, you still haven't gotten it. Of course, I really don't
14 matches
Mail list logo