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
eimsori [14]
3 years ago
6

What could I use to put on line 4

Computers and Technology
1 answer:
Usimov [2.4K]3 years ago
8 0
Your loop is iterating too many times.
You're creating a list that can hold 5 objects,
and then you're going through your loop 6 times.
for loop in range(5):

The word that you used, "loop" is the index value that counts from 0 to 5 (iterates over the first 6 values starting from 0).

loop = 0 the first time through, then
loop = 1 the next time,
... up to
loop = 5.

So one option is to use this word loop to find each location in your list,
people[loop] = name
(for the fourth line)

Also, I don't think this sorted will sort the list "in place".
I think you need to save it.
people = sorted(people)

I could be wrong though, I'm still a little new to Python :D
You might be interested in
What is computer hacking? describe some examples
Naily [24]
Computer hacking<span> refers to the practice of modifying or altering </span>computer<span> software and hardware to accomplish a goal that is considered to be outside of the creator's original objective.
</span>
“bot,” is a computer under the control of a hacker <span>without the knowledge of the computer user.</span>

3 0
4 years ago
Consider the following code:
ICE Princess25 [194]

Answer: 3

Explanation:

Because X = 18 and our condition given to the code if > and < which do not match with the input so it prints 3.

4 0
3 years ago
How to shutdown a computer by step by step​
Reptile [31]

<u><em> </em></u>Answer:

1) Press Ctrl + Alt + Del

2) Click the power button in the bottom-right corner of the screen.

3) From the desktop, press Alt + F4 to get the Shut Down Windows screen.

and that's how to shut down your computer

<u><em></em></u>

<u><em>Please mark as brainliest if answer is right</em></u>

Have a great day, be safe and healthy  

Thank u  

XD  

7 0
3 years ago
Read 2 more answers
Antivirus software products require that you update _____ on a regular basis.
Inga [223]

The Correct Answer is

Virus Definitions

Please Like

7 0
3 years ago
16
Lubov Fominskaja [6]
16
is a built-in mathematical formula included in MS Excel,
A) Function
4 0
3 years ago
Other questions:
  • What human activity would cause a decrease in the population of another species? (The action of humans would impact one species,
    9·1 answer
  • Assume the existence of a class named window with functions named close and freeresources, both of which accept no parameters an
    13·1 answer
  • Java languageThe cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. Declare a constant named CENTS_PER_
    5·2 answers
  • How do I get more points?
    13·2 answers
  • New Top Level Domains (TLDs) are coordinated by:_______.
    10·1 answer
  • Count the number of words in the string. A word is one or more non-blank characters separated by one or more blanks. My suggesti
    13·1 answer
  • Someone say crackhead
    15·2 answers
  • Ranboo back story? (not homework i just wanna find some ppl who are interested in the same things) ft. the reddie meme
    9·2 answers
  • True or false, USBs are slower than RAM.
    15·1 answer
  • The idea that an object can exist separate from the executing program that creates it is called
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!