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

What is the prepositional phrase in the sentence and the word it modifies The captain slipped on the wet deck.
How do you solve for x: 1/3x-5/9=5/6x
four fifths multiplied by blank equals two fifths what is blank
how many times does 46 go into 260 by rounding
Is 7/18 greater than zero and less than 1/2
What is the prepositional phrase in the sentence and the word it modifies The captain slipped on the wet deck.
half an avocado has about 160 calories. how many calories do a dozen avocado have
7 pounds of honey for every 1 pound of beeswax. use equivalent ratios to find how many pounds of honey are produced when 25 pounds of beeswax are produced
what did the federal art project set a precedent for
How do you find the value of variables in a circle? Number 9?