Question: Given: a variable named incompletes that refers to a list of student ids, and a variable student_id that has already been assigned a value Write
Given:
- a variable named incompletes that refers to a list of student ids, and
- a variable student_id that has already been assigned a value
Write some code that counts the number of times the value associated with student_id appears in the list associated with incompletes 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. ***In Python Please***

(That is all that's in the question)
Given: a variable named incompletes that refers to a list of student ids, and a variable student_id that has already been assigned a value Write some code that counts the number of times the value associated with student_id appears in the list associated with incompletes 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
