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

in which group of plants do gymnosperms and angiosperms belong?a.seedless vascular plantsb.nonvascular plantsc.seed-bearing vascular plantsd.seed-bearing nonvas
The tenths models have been shaded to represent the multiplying of two numbers. Which equation can be represented by the shaded parts of the model? A.0.3 × 0
When plucked, the E string on a violin has a frequency of 659 cycles per second. What sine function represents this note when it is graphed with an amplitude o
Which of the following countries is considered highly developed? A. China B. Tajikistan C. Kyrgyzstan D. Kazakhstan
Two number cubes are rolled. Find the probability of rolling two even numbers
APEXWhat Victorian attitude about non-Europeans does Mukharji find amusing in A Visit to Europe? A. Non-Europeans are cannibals B. Non-Europeans are vegetarians
Which of the following was an advantage held by the Patriots during the revolutionary war
Erica earns a rebate each month on her meals and movie tickets. She earns $3 for each movie ticket and $0.80 for each meal. Last month Erica purchased 15 meals
How do you know what memory to purchase for your computer?
I need help fast please.