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
Why CD-ROM is more reliable than floppy disk?​
irakobra [83]

Answer:

See explanation below.

Explanation:

The CD-ROM is a hard surface. Data is burned into the CD-ROM using a laser. The information in the CD-ROM is pretty stable and usually safe for a long time.

A Floppy Disk is a less hard surface. It is a thin film of magnetic material. Data is stored on the Floppy Disk using a targeted magnetic field. The information can be damaged by getting the disk close to a magnetic source. Even small grains of dust can cause a Floppy Disk to lose data.

This is why a CD-ROM is more reliable than a Floppy Disk.

Hope this helps! Have an Awesome Day!! :-)

3 0
3 years ago
How does limiting a company's scope benefit the company?
Alika [10]
If a company only focuses on a few things,they become a niche player in the market,therefore can demand a higher price because they are experts at only a few things.
8 0
4 years ago
Read 2 more answers
Who know's web Design
balu736 [363]

Answer: B

Explanation:

inline is the answer

4 0
3 years ago
Studying MyMagic+ helps one understand the costs associated with information systems deployment at scale. According to your read
vlabodo [156]

Answer:

The answer is "Training".

Explanation:

It is a technology programming that relates to tools, organizations, and services. It focused on helping consumers learn about technology-related topics. It is also known as the registered technology training services, that educate and assist customers in different fields, and incorrect option can be defined as follows:

  • bands readers, It refers to book, which is used in reading.
  • iPod Touch, It is a hardware device.
  • PDAs refer to a hardware device like a palmtop.
8 0
4 years ago
The /tmp directory is a temporary directory and will not exist on a system at all times. True or False?
jeka94

Answer:

False.

Explanation:

The /tmp directory is a directory that contains files that are required temporarily and also for temporary storage of data.The data inside the /tmp directory gets deleted when the system boots or shuts down.Since the directory exists permanently the content inside it is temporary.

So we can conclude that the answer is False.

5 0
3 years ago
Other questions:
  • A. When executing System.out.println(a1), the toString() method in the Object class is invoked.
    14·1 answer
  • What temporarily holds programs and date while the computer is on and allows the computer to access that information randomly?
    12·1 answer
  • Give two reasons why it is important to upgrade your browser when a new version becomes available.
    8·1 answer
  • . char values are surrounded by _____ quotes
    15·1 answer
  • In the lecture, we saw that TCP waits until it has received three duplicate ACKs before performing a fast retransmit. Why do you
    10·1 answer
  • Before you ever buy your first stock or bond, it's important to understand what type of investor you are. This depends on a numb
    12·1 answer
  • Which is a connectionless protocol in the transport layer? What are the small chunks of data called?
    12·2 answers
  • What happen if ignore the unsafe markings in hand tools in ict​
    12·1 answer
  • When you first purchase a notebook, make sure you have a ____ CD containing the installed OS so you can recover from a failed ha
    5·1 answer
  • Jeremy knows that there is a keyboard shortcut in Word, but he does not know what it is. What should Jeremy do to find out what
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!