Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions