Re: Simple list problem that's defeating me!

2010-06-24 Thread Neil Webster
the above example lines would be: a 4 6 8 b 10 11 12 ... and the lines are read as: [[a,2,3,4],[b,10,11,12], [a,2,3,4]] In response to not posting working code or actual inputs, ummm, that's why I am asking the question here. On Jun 22, 4:38 pm, Bruno Desthuilliers wrote: > Neil

Simple list problem that's defeating me!

2010-06-22 Thread Neil Webster
Hi all, I've got a simple problem but it's defeated me and I was wondering if somebody could point out where I'm going wrong or offer an alternative solution to the problem? I have a list of lists such as [[a,2,3,4],[b,10,11,12], [a,2,3,4]]. I need to combine the two lists that have the same fir

Hexadecimal list conversion

2007-12-20 Thread Neil Webster
Hi All. I have a list which is a line from a file: ['\x003\x008\x001\x004\x007\x005\x00.\x005\x000\x002\x005\x009\x009\x00', '\x002\x001\x003\x006\x002\x002\x00.\x001\x007\x004\x002\x008\x002\x00'] This should be in the format: ['381475.502599', '213622.174282'] I've tried a few options using re

Problems with if/elif statement syntax

2007-11-22 Thread Neil Webster
Hi all, I'm sure I'm doing something wrong but after lots of searching and reading I can't work it out and was wondering if anybody can help? I've got the following block of code: if a >= 20 and a < 100: if c == "c": radius = 500 els

Re: Glob returning an empty list when passed a variable

2007-02-09 Thread Neil Webster
On 9 Feb, 14:15, Steve Holden <[EMAIL PROTECTED]> wrote: > Neil Webster wrote: > > Hi, > > > I was wondering whether anybody could help me out. > > > I have a program, for part of it I am trying to pass a variable to a > > glob function, this returns an empty

Glob returning an empty list when passed a variable

2007-02-09 Thread Neil Webster
Hi, I was wondering whether anybody could help me out. I have a program, for part of it I am trying to pass a variable to a glob function, this returns an empty list. The strange thing is when I hard code in the variable the glob section works. Does anybody have any ideas as why it is not worki