Simple Python code for a starter
<p>I am trying to write a code that a user can input raw data that will pull up a numerical grade from a list, AND pair that numerical value with a letter grade. ie: the fourth grade in the list is 86, so it will PRINT 86 as well as the letter grade B.</p>

<p>Here is what I have so far:</p>

<hr>

<pre><code>grades = ['62','68','93','75','89','85']

print grades [3]

def lettergrade (grades):

    if grades &gt;=90:
        print('A')
    elif grades &gt;=80 and grades &lt;90:
        print('B')
    elif grades &gt;=70 and grades &lt;80:
        print('C')
    elif grades &gt;=60 and grades &lt;70:
        print('D')
    else:
        print('F')


print lettergrade (grades)
</code></pre>

<p>I am confused here, If you want the user input why do you want a list of values then? all you have to do is to wait for user input and check which grade that input belongs too. Please comment If you want some changes!!</p>

<pre><code>x = raw_input("Enter Score: ")
score = float(x)
try:
    if grades &gt;=90:
        print('A', score)
    elif grades &gt;=80 and grades &lt;90:
        print('B', score)
    elif grades &gt;=70 and grades &lt;80:
        print('C', score)
    elif grades &gt;=60 and grades &lt;70:
        print('D', score)
    else:
        print('F', score)

except:
    print "Error" 
</code></pre>

python list