minhnhatphan
minhnhatphan minhnhatphan
  • 18-03-2022
  • Computers and Technology
contestada

how do i multiply a loop (python)
I have x = [200, 300, 4, 125]
those are variables in x

y = 25

so how do I multiply y by each variable in x

Respuesta :

ExpertAlternative ExpertAlternative
  • 18-03-2022

Answer:

x = [200, 300, 4, 125]

y = 25

for item in x: Iterate over a_list.

y = y * item. multiply each element.

print(y)

Explanation:

Answer Link

Otras preguntas

When a 1.0 N force acts on a 1.0 kg object that is able to move freely, the object receives _____. a speed of 1.0 m/s an acceleration of .102 m/s 2 an accelera
________ are sums of money spent to influence an election, but the donating organization is not allowed to coordinate with a candidate's official campaign.
What is the value of x in the equation x + 10 = 13?
"what stage in lewin's model is characterized by new attitudes, values, and behaviors as the new status quo
Which planet’s surface is covered with red,iron-oxide dust? A.Mars B.Mercury C.Saturn D.Venus
how do I find population standard deviation
What was Lincoln's initial naval strategy? -He wanted to attack the eastern coastal states in the south. -He ordered a naval blockade of all ports in the South.
One main factor that led to the holocaust and other campaigns of genocide was extreme racism. emergence of new religious groups. desperate poverty. establishmen
Which type of financial institution typically has membership requirements?
Through the years, several plans have been suggested to _____. eliminate the electoral college system have the President appointed by the House reform the