title: TypeError: '>=' not supported between instances of 'list' and 'int'?
body: <p>I dont understand why i am getting the error of <code>"&gt;="</code> I thought i might have called something wrong.</p>
  
  <blockquote>
  <pre><code>TypeError: '&gt;=' not supported between instances of 'list' and 'int'?
  </code></pre>
  </blockquote>
  
  <pre><code>def determineLetterGrade(letterGd, testAverage):
  
      if (testAverage &gt;= 90) and (testAverage &lt;= 100):
          letterGd = "A.";
      else:
          if (testAverage &gt;= 87) and (testAverage &lt;= 89.99):
              letterGd = "B+.";
          else:
              if  (testAverage &gt;= 80 and (testAverage &lt;= 86.99)):
                  letterGd = "B."
              else:
                  if  (testAverage &gt;= 77) and (testAverage &lt;= 79.99):
                      letterGd = "C+. ";
                  else:
                      if  (testAverage &gt;= 70) and (testAverage &lt;= 76.99):
                          letterGd = "C.";
                      else:
                          if  (testAverage &gt;= 67) and (testAverage &lt;= 69.99):
                              letterGd = "D+.";
                          else:      
                              if (testAverage &gt;= 60) and (testAverage &lt;= 66.99) :                  
                                  letterGd = "D. ";
                              else:                       
                                  letterGd = "F.";  
      return letterGd; 
  
  def writeSortedList(count, finalCount, name, testAverage, outFile):
      count = 0;
      outFile.write("SORTED TEST AVERAGE LIST (LOWEST TO HIGHEST)" + "\n"); #writes the Label/title
      outFile.write("=" * 110 + "\n");
      while (count &lt; finalCount):
          outFile.write(format(format(name[count], "30s") + format(" : ", "^5s") + format(testAverage[count], "6.2f") +  format(" -&gt; ", "^5s") +  + "\n"));
          count = count + 1;
          #end while loop
      outFile.write("=" * 110 + "\n");
      outFile.write("\n");
      # End writeSortedList function
  </code></pre>