SlideShare a Scribd company logo
Put the pieces of code into the correct order (ignoring any indentations). The program should ask
the user for prices until they want to stop. Once they are done entering prices, calculate the total.
prices = [ ]
prices.append(price)
price=float(input("Enter a price"))
print(f"Your total is ${.2f}")
while price != 1:
total = sum(prices)

More Related Content

More from ChristopherkUzHunter

Python help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdfPython help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdf
ChristopherkUzHunter
 
Q What is the Coase theorem and what does it tell us about externaliti.pdf
Q What is the Coase theorem and what does it tell us about externaliti.pdfQ What is the Coase theorem and what does it tell us about externaliti.pdf
Q What is the Coase theorem and what does it tell us about externaliti.pdf
ChristopherkUzHunter
 
Pythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdf
Pythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdfPythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdf
Pythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdf
ChristopherkUzHunter
 
Q- the power of the president to veto legislation and the power of the.pdf
Q- the power of the president to veto legislation and the power of the.pdfQ- the power of the president to veto legislation and the power of the.pdf
Q- the power of the president to veto legislation and the power of the.pdf
ChristopherkUzHunter
 
Q1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdf
Q1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdfQ1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdf
Q1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdf
ChristopherkUzHunter
 
Public administration related question 1- A central theme in the post.pdf
Public administration related question  1- A central theme in the post.pdfPublic administration related question  1- A central theme in the post.pdf
Public administration related question 1- A central theme in the post.pdf
ChristopherkUzHunter
 
q- M be the Deterministic Finite Antomata (DFA) show below please answ.pdf
q- M be the Deterministic Finite Antomata (DFA) show below please answ.pdfq- M be the Deterministic Finite Antomata (DFA) show below please answ.pdf
q- M be the Deterministic Finite Antomata (DFA) show below please answ.pdf
ChristopherkUzHunter
 
Q- A resident has been diagnosed with a strote which action would the.pdf
Q- A resident has been diagnosed with a strote which action would the.pdfQ- A resident has been diagnosed with a strote which action would the.pdf
Q- A resident has been diagnosed with a strote which action would the.pdf
ChristopherkUzHunter
 
Python version change I use a MacBook version 12-1 I want to change.pdf
Python version change  I use a MacBook version 12-1  I want to change.pdfPython version change  I use a MacBook version 12-1  I want to change.pdf
Python version change I use a MacBook version 12-1 I want to change.pdf
ChristopherkUzHunter
 
Question 2 a) Write a program code to multiply two square matrices usi.pdf
Question 2 a) Write a program code to multiply two square matrices usi.pdfQuestion 2 a) Write a program code to multiply two square matrices usi.pdf
Question 2 a) Write a program code to multiply two square matrices usi.pdf
ChristopherkUzHunter
 
Question 2 - A two-way set-associative cache has lines of 16 bytes and.pdf
Question 2 - A two-way set-associative cache has lines of 16 bytes and.pdfQuestion 2 - A two-way set-associative cache has lines of 16 bytes and.pdf
Question 2 - A two-way set-associative cache has lines of 16 bytes and.pdf
ChristopherkUzHunter
 
Question 2 (1 point) Match the term with the best corresponding defini.pdf
Question 2 (1 point) Match the term with the best corresponding defini.pdfQuestion 2 (1 point) Match the term with the best corresponding defini.pdf
Question 2 (1 point) Match the term with the best corresponding defini.pdf
ChristopherkUzHunter
 
Question 11 (4 points) Which of the following is NOT a primary chara.pdf
Question 11 (4 points)   Which of the following is NOT a primary chara.pdfQuestion 11 (4 points)   Which of the following is NOT a primary chara.pdf
Question 11 (4 points) Which of the following is NOT a primary chara.pdf
ChristopherkUzHunter
 
Question 17 (4 points) The key advantage of structured observation o.pdf
Question 17 (4 points)   The key advantage of structured observation o.pdfQuestion 17 (4 points)   The key advantage of structured observation o.pdf
Question 17 (4 points) The key advantage of structured observation o.pdf
ChristopherkUzHunter
 
Question 1- Youre required to provide a thorough list of resources and.pdf
Question 1- Youre required to provide a thorough list of resources and.pdfQuestion 1- Youre required to provide a thorough list of resources and.pdf
Question 1- Youre required to provide a thorough list of resources and.pdf
ChristopherkUzHunter
 
Question 16 5 pts The legislation that requires federal government age.pdf
Question 16 5 pts The legislation that requires federal government age.pdfQuestion 16 5 pts The legislation that requires federal government age.pdf
Question 16 5 pts The legislation that requires federal government age.pdf
ChristopherkUzHunter
 
QUESTION 10 What are pro forma statements- A- Functional cash statemen.pdf
QUESTION 10 What are pro forma statements- A- Functional cash statemen.pdfQUESTION 10 What are pro forma statements- A- Functional cash statemen.pdf
QUESTION 10 What are pro forma statements- A- Functional cash statemen.pdf
ChristopherkUzHunter
 
python Write the function quickBST(L) that receives a list L and buil.pdf
python  Write the function quickBST(L) that receives a list L and buil.pdfpython  Write the function quickBST(L) that receives a list L and buil.pdf
python Write the function quickBST(L) that receives a list L and buil.pdf
ChristopherkUzHunter
 
Question 1- A database is being constructed to keep track of the teams.pdf
Question 1- A database is being constructed to keep track of the teams.pdfQuestion 1- A database is being constructed to keep track of the teams.pdf
Question 1- A database is being constructed to keep track of the teams.pdf
ChristopherkUzHunter
 
public administration related question 1- Gulick and Urwick expanded.pdf
public administration related question  1- Gulick and Urwick expanded.pdfpublic administration related question  1- Gulick and Urwick expanded.pdf
public administration related question 1- Gulick and Urwick expanded.pdf
ChristopherkUzHunter
 

More from ChristopherkUzHunter (20)

Python help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdfPython help- You will be writing an encryption program for an IT compa.pdf
Python help- You will be writing an encryption program for an IT compa.pdf
 
Q What is the Coase theorem and what does it tell us about externaliti.pdf
Q What is the Coase theorem and what does it tell us about externaliti.pdfQ What is the Coase theorem and what does it tell us about externaliti.pdf
Q What is the Coase theorem and what does it tell us about externaliti.pdf
 
Pythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdf
Pythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdfPythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdf
Pythagorean Theorem c2-a2+b2 Triangles demo- - define structure for ke.pdf
 
Q- the power of the president to veto legislation and the power of the.pdf
Q- the power of the president to veto legislation and the power of the.pdfQ- the power of the president to veto legislation and the power of the.pdf
Q- the power of the president to veto legislation and the power of the.pdf
 
Q1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdf
Q1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdfQ1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdf
Q1- (12 pts) (a) Is it possible that an event E is independent of E (i.pdf
 
Public administration related question 1- A central theme in the post.pdf
Public administration related question  1- A central theme in the post.pdfPublic administration related question  1- A central theme in the post.pdf
Public administration related question 1- A central theme in the post.pdf
 
q- M be the Deterministic Finite Antomata (DFA) show below please answ.pdf
q- M be the Deterministic Finite Antomata (DFA) show below please answ.pdfq- M be the Deterministic Finite Antomata (DFA) show below please answ.pdf
q- M be the Deterministic Finite Antomata (DFA) show below please answ.pdf
 
Q- A resident has been diagnosed with a strote which action would the.pdf
Q- A resident has been diagnosed with a strote which action would the.pdfQ- A resident has been diagnosed with a strote which action would the.pdf
Q- A resident has been diagnosed with a strote which action would the.pdf
 
Python version change I use a MacBook version 12-1 I want to change.pdf
Python version change  I use a MacBook version 12-1  I want to change.pdfPython version change  I use a MacBook version 12-1  I want to change.pdf
Python version change I use a MacBook version 12-1 I want to change.pdf
 
Question 2 a) Write a program code to multiply two square matrices usi.pdf
Question 2 a) Write a program code to multiply two square matrices usi.pdfQuestion 2 a) Write a program code to multiply two square matrices usi.pdf
Question 2 a) Write a program code to multiply two square matrices usi.pdf
 
Question 2 - A two-way set-associative cache has lines of 16 bytes and.pdf
Question 2 - A two-way set-associative cache has lines of 16 bytes and.pdfQuestion 2 - A two-way set-associative cache has lines of 16 bytes and.pdf
Question 2 - A two-way set-associative cache has lines of 16 bytes and.pdf
 
Question 2 (1 point) Match the term with the best corresponding defini.pdf
Question 2 (1 point) Match the term with the best corresponding defini.pdfQuestion 2 (1 point) Match the term with the best corresponding defini.pdf
Question 2 (1 point) Match the term with the best corresponding defini.pdf
 
Question 11 (4 points) Which of the following is NOT a primary chara.pdf
Question 11 (4 points)   Which of the following is NOT a primary chara.pdfQuestion 11 (4 points)   Which of the following is NOT a primary chara.pdf
Question 11 (4 points) Which of the following is NOT a primary chara.pdf
 
Question 17 (4 points) The key advantage of structured observation o.pdf
Question 17 (4 points)   The key advantage of structured observation o.pdfQuestion 17 (4 points)   The key advantage of structured observation o.pdf
Question 17 (4 points) The key advantage of structured observation o.pdf
 
Question 1- Youre required to provide a thorough list of resources and.pdf
Question 1- Youre required to provide a thorough list of resources and.pdfQuestion 1- Youre required to provide a thorough list of resources and.pdf
Question 1- Youre required to provide a thorough list of resources and.pdf
 
Question 16 5 pts The legislation that requires federal government age.pdf
Question 16 5 pts The legislation that requires federal government age.pdfQuestion 16 5 pts The legislation that requires federal government age.pdf
Question 16 5 pts The legislation that requires federal government age.pdf
 
QUESTION 10 What are pro forma statements- A- Functional cash statemen.pdf
QUESTION 10 What are pro forma statements- A- Functional cash statemen.pdfQUESTION 10 What are pro forma statements- A- Functional cash statemen.pdf
QUESTION 10 What are pro forma statements- A- Functional cash statemen.pdf
 
python Write the function quickBST(L) that receives a list L and buil.pdf
python  Write the function quickBST(L) that receives a list L and buil.pdfpython  Write the function quickBST(L) that receives a list L and buil.pdf
python Write the function quickBST(L) that receives a list L and buil.pdf
 
Question 1- A database is being constructed to keep track of the teams.pdf
Question 1- A database is being constructed to keep track of the teams.pdfQuestion 1- A database is being constructed to keep track of the teams.pdf
Question 1- A database is being constructed to keep track of the teams.pdf
 
public administration related question 1- Gulick and Urwick expanded.pdf
public administration related question  1- Gulick and Urwick expanded.pdfpublic administration related question  1- Gulick and Urwick expanded.pdf
public administration related question 1- Gulick and Urwick expanded.pdf
 

Recently uploaded

BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 

Put the pieces of code into the correct order (ignoring any indentatio.pdf

  • 1. Put the pieces of code into the correct order (ignoring any indentations). The program should ask the user for prices until they want to stop. Once they are done entering prices, calculate the total. prices = [ ] prices.append(price) price=float(input("Enter a price")) print(f"Your total is ${.2f}") while price != 1: total = sum(prices)