> > The above code prints 8 lines, each being an entry for which item in > the list was either A or B. Again, I'm looking for the result to be > the number 8 itself - the total number of instances that A or B occurs > in the list.
Hi Derek, Hint: the code currently prints a variable within the loop. But you can print the value of your variable _outside_ the loop, after all the student_grades have been processed. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor