Question: For this question, the task is to complete the method count ( data , number ) that takes a list of integers data and an

For this question, the task is to complete the method count(data, number) that takes a list of integers data and an int number and returns the number of elements in data that are different to data. For example, if data was [4,6,2,7,8,4,5] and number was 4, count should return 5. For the same list, if number was -7, count should return 7.
Only the count method will be tested. There is a main section that you can use for your own testing purposes.

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 Programming Questions!