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

Melissa and robbie are flying remote control gliders the altitude of melissas gliderh (a) in feet is modeled by this function where is a us time in seconds afte
Select all polynomials that are in standard form.
The best way to mentally prepare for what may be over the hill or around the curve is to _________ and _________.A) Swerve, maneveurB) Honk your horn, swiftly c
What glassware is used for liquid-liquid (acid-base) extraction? a) Beaker b) Erlenmeyer flask c) Separatory funnel d) Petri dish
Regarding smallness, the odds of surviving improve if the venture reaches a) A global scale. b) A niche market. c) Regional dominance. d) A limited customer ba
Simplify each exponential expression using the properties of exponents and match it to the correct answer
There was a word problem that said 6 clients are throwing a party & each cake serves 24 servings & has a party of 70 & 3 staff. How many cakes are n
A train is traveling on a straight track at a constant speed. In 80 seconds, it covers a distance of 2480 meters. What is the speed of the train?A) 25 m/sB) 30
HELP ME AGAINNNNNN please ill give the brainly thing
When working with this type of communicative person should use a farm approach and be assertive