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

There are 15 students on the debate team. Four will attend the debate. How many groups of four can be selected from the 15 students?​
An increase in blood carbon dioxide content causes hemoglobin to ________. release all bound carbon dioxide molecules bind more oxygen molecules bind more H re
Which phrase best describes the great society program of president B Johnson A. a plan to prevent counterculture hippies from influencing society in the US B.
Drag each label to the correct location on the image Divide the different costs into fixed and variable costs.
The ability to provide clear, logical thinking in addition to proper grammar, punctuation, and spelling is known as effective ______ skills.
Please help!! 40 Points!!!!!
How do you boost the amount of electricity a fuel cell system produces?.
Why is my phone not notifying me when i get text messages?.
How soon can you get pregnant after stopping the pill?.
In passage 2, how does holden transform the character of the carpenter so that the character is different than in passage 1?