peterblessd6751 peterblessd6751
  • 16-10-2020
  • Computers and Technology
contestada

Write code that Uses the range() in a for loop to iterate over the positions in user_names in order to modify the list g

Respuesta :

sandlee09
sandlee09 sandlee09
  • 16-10-2020

Answer:

Explanation:

The range() function is a built-in function in the Python programming language. In the following code, we will use this function to iterate over all the positions in the array called user_names and add them to the list g. (assuming that is what was meant by modifying the list g)

for i in range( len(user_names) ):

   g.append(user_names[i])

This simple 2 line code should do what you are asking for.

Answer Link

Otras preguntas

Why would the inclusion of soviet Russia be a good or bad idea? Explain
poob bn vbyfcfgxfc jghjg jhgh
I need help and this is part 1
What is the slope? ……
10 Select the correct answers. In this excerpt from act I, Scene VI, of Macbeth, Duncan praises the atmosphere in the castle and the hospitality of his hostess.
Which of the following is not an example of a conflict involving social work values and ethics? a. Should drug use during pregnancy be prosecuted? b. Should s
The anterior rami of spinal nerves ______ are called intercostal nerves because they travel in the intercostal space sandwiched between ______.
Solve for X. 2x-5=3x+4
How do igneous rocks/minerals affect a sedimentary or metamorphic rocks shape, color, hardness, etc
Hey can anyone pls tell me the Introductory Paragraph Hook for the story "the lottery" The use of imagery is a popular technique in short fiction. A related or