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

6.7x=5.2x+12.3 how to solve this ?
In the 1970s, the island of Nauru had one of the highest per capita incomes in the Oceania region due to extensive _______ miningA. copperB. phosphateC.goldD.
What property of a light bulb's filament causes it to glow? 1. high voltage 2. high resistance 3. low resistance 4. low voltage
Does any one know the answer to 28=3m+-7m? I don't know the answer and I tried a thousand times, please help I need the answer to night. Thanks! Please show yo
Who made up the elite group in Soviet society?
Insert grouping symbols so that the given expression has a value of 22.  10 – 5 • 8 – 6 + 12
In the Taming of The Shrew, why does Katherine submit to Petruchio? Force or choice? Please pick a side and give examples to support your answer.
The Sanchez family is going on a vacation. If they drive for 3 hours at 65 mph, how many miles will they travel?
What is the mean of 73 45 88 90 90 81 83
What is 350/1000 in a decimal?