Ask Question
21 April, 17:23

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

+1
Answers (1)
  1. 21 April, 20:09
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers