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

There are 38 roses, 35 tulips, and 22 lilies. The Commutative Property of Addition can help you add. Which shows the Commutative Property of Addition?
it when I this morning
how do you convert 4x = 8 to y=mx+b? and what is the answer?
The whole number 330 is divisible by 2 3 5 6 10 11 True False
Why might Gillray have depicted the two men differently
In an election, Candidate A received 75 votes and candidate B received 25 votes, after the first 100 votes were counted. Assume this ratio is maintained. If Can
Imagine that you are an industrial worker in a city in China. What would you put in an e-mail to a relative in the United States explaining how China's transiti
I think its A but im not sure lol
how many molecules are there in 2.30g of NH3
Think of one word which can be used appropriately in all three sentences. There's a crack in the _____ of my glass. He had started at the ______ and worked his