mnagaoormeeran
mnagaoormeeran mnagaoormeeran
  • 18-12-2020
  • Computers and Technology
contestada

X= [12,67,89,34,56,90,67]

Write a python program to bring the following output by using the given X.

Output:

[12,67,89,34,100,56,90,67]

​

Respuesta :

PlayersZero PlayersZero
  • 18-12-2020

Answer:

X = [12, 67, 89, 34, 56, 90, 67]

for i in range (len(X)):

   if (X[i] == 34):

       print(X[i])

       print("100")

   else:

       print(X[i])

Explanation:

Kind of a ugly hack because I'm not all too familiar with python, but it gets the job done :^)

Answer Link

Otras preguntas

can ile ilgili cümle
the separate condensed balance sheets and income statements of purl corp. and its wholly owned subsidiary, scott corp., are as follows:
Please take this interview! You will be reported if you just take my points or purposely put the wrong thing. Will mark brainlyest! What proofreading and revisi
FILL THE BLANK. in ______, the synovial membrane becomes inflamed and thickens, producing degenerative changes that make the joint immovable and painful.
∠A and ∠B\angle B∠B are vertical angles. If m∠A=(5x+5)∘\angle A=(5x+5)^{\circ}∠A=(5x+5)∘ and m∠B=(6x−8)∘\angle B=(6x-8)^{\circ}∠B=(6x−8)∘, then find the value o
how do friendships change from the preschool to the primary years
when some of the operations on a whole class automatically apply to its parts, the operation is said to propagate. T/F?
a client is returned to the unit following a total gastrectomy
Help me please if I don’t get it done I won’t pass
reducing consumption of snacks in vending machines is an example of which weight control technique