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***

Given: a variable named incompletes that refers to a list of student

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!