Re: [Tutor] Comparing files, Counting Value

2005-01-31 Thread Danny Yoo
Hi Michiyo, Ok, let's take a look at the code. > i=open("file 1") #value data > o=open("file 2") #look-up file > l=open("result", 'w')#result We strongly recommend renaming these names to ones that aren't single characters. It's difficult to tell here what 'i', 'o', and 'l' mean, outside of

Re: [Tutor] Comparing files, Counting Value

2005-01-31 Thread Bill Mill
Michiyo, When you ask a question to the list, you should be more careful to highlight your problem so that it doesn't seem like you're asking people to write a script for you. I don't think that's what you were doing, but just try to reduce your problem to a minimal example in the future. I don't

[Tutor] Comparing files, Counting Value

2005-01-31 Thread Michiyo LaBerge
Hello all, I'm very new to Python and have been trying to write a script to compare data from 2 files and getting a total. One of the two files contains x, y positions of pixels and a color value(z) of each, so it has three columns in the file. The other file has two columns; x1, y1. I'd like t