Ask Question
31 January, 01:34

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. 31 January, 02:43
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers