Given: a variable named incompletes that refers to a list of student ids, and a variable named student_id that has already been assigned a value Write some code that counts the number of times the value of student_id appears in the incompletes list, and assigns this value to number_of_incompletes. You may use, if you wish, an additional variable, k. You may use only k, incompletes, student_id, and number_of_incompletes.

Solved
Show answers

Ask an AI advisor a question