chulaG7123 chulaG7123
  • 08-03-2018
  • Computers and Technology
contestada

Write an expression to print each price in stock_prices. sample output for the given program: $ 34.62 $ 76.30 $ 85.05

Respuesta :

keu
keu keu
  • 22-03-2018
let's say our variable is:

stock_prices = ['$ 34.62', '$ 76.30', '$ 85.05']

Then using for loop in Python, We can print the output as:

for (i in range(0, len(stock_prices)+1):
    print(stock_prices[i])

Answer Link

Otras preguntas

Mr. Webster works 4 days a week at his office and 1 day a week at home. The distance to Mr. Webster’s office is 23.7 miles. He takes a different route home, whi
Which of the following statements is correct? Group of answer choices Archaea are made up of eukaryotic cells. Achaea are part of the same domain as bacteria in
Select the gerund or gerund phrase. In that amazing art class I took last summer, I enjoyed just about every one of our projects except for sculpting a figure o
Identify the reactant that gets oxidized in the following reaction. 2 AgNO₃(aq) + CaI₂(aq) → 2 AgI(s) + Ca(NO₃)₂(aq) A) Ag in AgNO₃ B) I in CaI₂ C) N in AgNO₃ D
Podemos saber qué habilidades tienen los robots actuales con fines industriales, médicos o militares
Write 0.00000711 in scientific notation.
A solution of 0.2 M Sulfuric acid is titrated with a 0.2 M basic solution. In three to five sentences, explain how you can use the results of the titration as e
Explain. Do you think that the situation should be different and, if so, how?: on social media 4+ senteses
galing ko no. ambitios palang pero abot 2,000 na points ko​
What do you do if a guy is obsessed with you??!​