read data in specific column and row of a text file
<p>I Have a text file which contain 3 columns and 20000 rows.
I like to know what should I do to get the specific data (for example) in row 1000 and column 2?
My first column is formatted like AAAA and my second column is a number like 1234.
I tried this solution but I got an error based on my first column being letters
I would like to define a variable which contains my data at the end:</p>

<pre><code>with open ('my_file') as f:
    for x , line in eumerate(f):
         if x = 1000:
             numfloat = map(float , line.split())
             print numfloat[1]
</code></pre>

<p>make '=' to '==' at line 3 of your code    </p>

<pre><code>with open('my_file', 'r') as f:
    for x, line in enumerate(f):
        if x == 1000:
            print float(line.split()[1])
</code></pre>

python text row line