Fielding numbers using < and > values <p>So i wish to field these numbers into groups as you can see below, the and is incorrect and wish to know the correct method of doing so.</p> <p>After the "if" the code it assigns the a rating that co-incides with the score and then 1 is added to a counter that counts the number of groups with that rating. </p> <pre><code>#determining the meal rating and counting number of applied ratings and priniting def mealrating(score): for x in range(0,len(score)): if 1 &lt; and score[x] &gt;3: review[x] = poor p = p + 1 if 4 &lt; and score[x] &gt;6: review[x] = good g = g + 1 if 7 &lt; and score[x] &gt;10: review[x] = excellent e = e + 1 print('\n') print('%10s' % ('Poor:', p )) print('%10s' % ('Good', g )) print('%10s' % ('Excellent', e )) </code></pre>