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]
4 years ago
6

What could I use to put on line 4

Computers and Technology
1 answer:
Usimov [2.4K]4 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
Which fonts do not have a practical use in writing
kondaur [170]
To be honest with you, I don’t know but you can always look up on google “which fonts do not have a practical use in writing” and then there are links you can look up for the answer . Sorry but I don’t know which link is the best answer for your question ;) have a great day bro
8 0
3 years ago
How does science impact the technology?
Annette [7]

Answer:

Who really knows

Explanation:

5 0
3 years ago
Read 2 more answers
Which is a tool that allows you to copy formatting from one place and apply it to other places?
ruslelena [56]

Answer:

copy and paste

Explanation:

highlight, right click, then go to where you want it, then right click again, and paste. and done

8 0
4 years ago
How to know if somebody else is listening my conversations by cellphone?
weeeeeb [17]
I dont think it would be possible for someone to listen to your calls im pretty sure only the police could if they provide a sign warrent by a judge to the phone company
4 0
3 years ago
______ are segments of computer code that attach to existing computer programs and perform malicious acts. select one:
Ann [662]
The best answer is A, viruses.
5 0
3 years ago
Other questions:
  • What does the hexadecimal number 2D represent in the binary system?
    9·1 answer
  • which of these can a worksheet within a spreadsheet contain? a.a chart b.data c.multiple charts d.all of these
    7·2 answers
  • Informatyka klasa 7 daje naj
    10·1 answer
  • Corell Inc. has an online tool that offers a wide variety of Corell shoes for direct purchase. The tool even allows customers to
    9·1 answer
  • Which of the following statements is false? Group of answer choices A subclass is often smaller than its superclass. A superclas
    12·1 answer
  • Which words in the sentence make up the adjective phrase? Which word does the adjective phrase modify? The farmer delivers five
    15·1 answer
  • The computer system provides an internal clock that sends an interrupt periodically to the CPU signaling that it’s time to start
    11·1 answer
  • What is a System Software ?
    11·2 answers
  • Mr. stevens is the principal of a high school. why might he want to export data from a database of students’ exam scores? to cre
    5·2 answers
  • Write a program in c# that simulates the roll of two six sided dice.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!