menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write an expression to print each price in stock_prices. sample output for the given program: $ 34.62 $ 76.30 $ 85.05
asked
Oct 17, 2019
24.5k
views
2
votes
Write an expression to print each price in stock_prices. sample output for the given program: $ 34.62 $ 76.30 $ 85.05
Computers and Technology
college
Tigran Abrahamyan
asked
by
Tigran Abrahamyan
8.6k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
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])
Jeryl Cook
answered
Oct 21, 2019
by
Jeryl Cook
7.9k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 28, 2021
26.1k
views
Write an expression to print each price in stock prices. Sample output with inputs: 34.62 76.30 85.05 # NOTE: The following statement converts the input into a list container 2 stock_prices - input().split()
SevenDays
asked
Jun 28, 2021
by
SevenDays
8.3k
points
Computers and Technology
college
1
answer
1
vote
26.1k
views
asked
Dec 24, 2023
117k
views
Write an expression to print each price in stock_prices.
Josh Crews
asked
Dec 24, 2023
by
Josh Crews
7.5k
points
Computers and Technology
college
1
answer
5
votes
117k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
This is science they just dont have the subject buy anyways describe interactions you have with the environment that you depend on to meet your basic needs hope u can help
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org