On 07/16/2012 12:58 PM, Joel Goldstick wrote: > On Mon, Jul 16, 2012 at 12:24 PM, susana moreno colomer > <susana...@hotmail.com> wrote: >> They are separated by tabs You're top-posting again. The history of all these other messages is thoroughly obfuscated if you don't follow the convention of adding your remarks AFTER the part you're quoting.
>> <BIG SNIP> >> for b in line: >> A.append(b[5].strip()) >> B.append(b[6].strip()) >> C.append(b[8].strip()) >> >> For the A List, this will take the 5th character from the line, not the >> 5th >> column. You may need to split the line based on the separators. >> >> AR >> >> To make your code show correctly you must set your email program to >> write text and not html. You should also set your text editor to turn >> tabs into 4 spaces. Tabs work in python, but you can't mix tabs and >> spaces, so it is less of a problem if you only use spaces for >> indenting >> >> >> -- >> Joel Goldstick >> > Its great that you are using spaces in your code editor, but the > reason your code isn't formatted in your emails is that you have rich > text editing or html editing on. If you are using gmail, you can tell > this because it gives a word processor style ribbon of buttons at the > top of your edit window. > > You'll notice that you've successfully confused Joel, by not putting your remarks AFTER his query. Since you have tabs in your source file (and some people do prefer tabs for some obscure reason), the easiest way to get rid of them is the Linux utility 'expand'. -- DaveA _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor