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

Select the statement which indicates a good ergonomic practice
Match the following terms and definitions. 1. the part of the neuron that carries the cell's message away from the cell cell body 2. the part of the
What is the solution set for the quadratic equation x2 - 16 = 0? A) {4} B) {-4, 4} C) {256} D) {-256, 256}
Why did Northern politicians support higher tariffs?
The start of the Korean War in 1950 is MOST associated with which of these? A) the Great Depression B) the spread of Communism C) the spread of Nazi governmen
think of 2 numbers that subtract to 5 and multiply to 24
Mis primos mayores que yo.
In a department store, a $40 dress is marked, “Save 25%.” What is the sale price of the dress?
where does the most unbundant form of carbohydrates come from??
Mendel formulated his principles of inheritance based on _____. mendel formulated his principles of inheritance based on _____. a detailed understanding of meio