averaging text document with string in python
<p>I need to make a table that pulls one or more person's name and scores at various games from a text file, then find the average, minimum and maximum of each person's scores and display them.</p>

<p>EDIT-here is my current code:</p>

<pre><code>    while name!='':
    floor=text_file.readline().rstrip()
    rings=text_file.readline().rstrip()
    p_bars=text_file.readline().rstrip()
    p_horse=text_file.readline().rstrip()
    h_bar=text_file.readline().rstrip()


    floor_int=int(floor)
    rings_int=int(rings)
    p_bars_int=int(p_bars)
    p_horse_int=int(p_horse)
    h_bar_int=int(h_bar)

    score_sum=floor_int+rings_int+p_bars_int+p_horse_int+h_bar_int
    avg=score_sum/5    
</code></pre>

<p>how would I be able to do math with the lines that have numbers and exclude the lines that have names?</p>

<p>EDIT: running that code gives me this:
        TypeError: Can't convert 'float' object to str implicitly</p>

<p>any ideas?</p>
