Ask Question

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

+4
Answers (1)
  1. 5 September, 13:58
    0
    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])
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write an expression to print each price in stock_prices. sample output for the given program: $ 34.62 $ 76.30 $ 85.05 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers