1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ICE Princess25 [194]
4 years ago
6

You are given a variable named zipcode_list that has been defined and refers to a list of postal codes. Write some code that ass

igns True to duplicates if any two elements in the list have the same value, but that otherwise assigns False to duplicates. You may, if you wish, use two other variables, j and k. Use only j, k, zipcode_list, and duplicates.
Computers and Technology
1 answer:
saw5 [17]4 years ago
4 0

Answer:

<em>Since I'm using the other two variables, the coding will be as follows;</em>

duplicates = False

j = 0

while j < len(zipcode_list)-1 and not duplicates:

k = j + 1

while k < len(zipcode_list) and not duplicates:

if zipcode_list[k] == zipcode_list[j]:

duplicates = True

<em><u>k += 1 </u></em>

<em><u>j += 1</u></em>

You might be interested in
Write a loop statement to count and display the number of positive integers in the array. That is, your loop should display the
dlinn [17]

Answer:

int count =0;

    for(int i=0;i<10;i++)

    {

        if(myArray[i]>=0)

        {

            count++;

        }

    }

    cout<<"Number of positive integers is "<<count<<endl;

Explanation:

The above written loop is for counting positive integers in the myArray[].

For counting we have taken a count integer initialized with 0.On iterating over the array if the element is greater than or equal to 0 we consider it as positive and increasing the count.At the end printing the count.

3 0
3 years ago
Disadvantages of computer. ​
SVEN [57.7K]

Answer:You cant carry it around like a phone

Explanation:

7 0
3 years ago
What is output? Select all that apply. c = 3 while (c &lt; 10): c = c + 2 print (c)
Sophie [7]

Answer:

5, 7, 9, 11

Explanation:

its on quizlet

8 0
3 years ago
What is a . com in a web address mean<br>​
geniusboy [140]

Answer:

dot commercial

Explanation:

.edu education

.gov goverment

4 0
3 years ago
Read 2 more answers
Which of the following is a basic principle of improvement?
lesya [120]

From the given the statement, "every system is perfectly designed to get the results it gets" is a basic principle of improvement.

Option B

<u>Explanation:</u>

The improvement activity begins with the quote ‘every system is perfectly designed to get the results it gets’, by W. Edwards Deming; The quote states both the unintended and intended effects are designed into our systems.

For example: Healthcare in the UK has been perfectly designed to lower the waiting times to 18 weeks for various procedures over last twelve years. Reflecting on Safer Patients Initiative (SPI), this can be true to improvement systems: every improvement system is perfectly designed to get the results its gets and SPI is a case in point.

The leading improvements that need to be designed into our improvement systems:

  • Improvement activity needs to be built on strong foundations
  • Greater engagement with people’s intrinsic motivation
  • Embrace a wider set of methods
  • Greater understanding of how systems and processes outside direct clinical care contribute to safety and quality.

So, it can be concluded that the line given by W. Edwards Deming tends to be the principle of improvement.

6 0
3 years ago
Other questions:
  • In your presentation you added a text box to?
    5·1 answer
  • 1. Which of the following might be a problem taken on by environment engineers?
    8·1 answer
  • What was the second phone made in the world called?
    5·1 answer
  • Which of the following declares an abstract method in an abstract C++ class? (Points : 2) public: void print();
    14·1 answer
  • Function countValues = CreateArray(endValue) % endValue: Ending value of countValues
    7·1 answer
  • The velocity dimension of Big Data refers to _____.
    15·1 answer
  • Which can be used to decode a Unicode character encoding into text?
    13·1 answer
  • Using examples, evaluate the open source model of software development. In your discussion highlight some of its advantages and
    12·1 answer
  • Lonnie needs to use a special kind of block in his game that will tell him whether an object has slammed into his car true or no
    13·1 answer
  • Purchase computing resources as an outsourced service from suppliers who own and maintain all the necessary equipment and softwa
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!