SlideShare a Scribd company logo
Find and fix all the errors in the following program. userInput = int (input ("Enter a number: "))
if userInput > 5 : total = total + userInput * 0.5 print("Total: ", total) else: print("The input value
is invalid.")

More Related Content

More from meenaaarika

More from meenaaarika (20)

Starlight Company has inventory of 8 units at a cost of $200 each on O.pdf
Starlight Company has inventory of 8 units at a cost of $200 each on O.pdfStarlight Company has inventory of 8 units at a cost of $200 each on O.pdf
Starlight Company has inventory of 8 units at a cost of $200 each on O.pdf
 
Shell Sort Shell sort is an improvement of insertion sort- Shell sort.pdf
Shell Sort Shell sort is an improvement of insertion sort- Shell sort.pdfShell Sort Shell sort is an improvement of insertion sort- Shell sort.pdf
Shell Sort Shell sort is an improvement of insertion sort- Shell sort.pdf
 
Sara has gone to her primary care provider and he has expressed concer.pdf
Sara has gone to her primary care provider and he has expressed concer.pdfSara has gone to her primary care provider and he has expressed concer.pdf
Sara has gone to her primary care provider and he has expressed concer.pdf
 
Evaluate the following discharge summary compared to CMS regulations a.pdf
Evaluate the following discharge summary compared to CMS regulations a.pdfEvaluate the following discharge summary compared to CMS regulations a.pdf
Evaluate the following discharge summary compared to CMS regulations a.pdf
 
Q37- Which of the following statements about restriction nucleases is.pdf
Q37- Which of the following statements about restriction nucleases is.pdfQ37- Which of the following statements about restriction nucleases is.pdf
Q37- Which of the following statements about restriction nucleases is.pdf
 
- Implement Longest Common Subsequence using Dynamic Programming appro.pdf
- Implement Longest Common Subsequence using Dynamic Programming appro.pdf- Implement Longest Common Subsequence using Dynamic Programming appro.pdf
- Implement Longest Common Subsequence using Dynamic Programming appro.pdf
 
Question 1 Identifying each other is a critical part of human society.pdf
Question 1  Identifying each other is a critical part of human society.pdfQuestion 1  Identifying each other is a critical part of human society.pdf
Question 1 Identifying each other is a critical part of human society.pdf
 
Project Stakeholder Management Communicating with your Sponsor 1) A sp.pdf
Project Stakeholder Management Communicating with your Sponsor 1) A sp.pdfProject Stakeholder Management Communicating with your Sponsor 1) A sp.pdf
Project Stakeholder Management Communicating with your Sponsor 1) A sp.pdf
 
11- Why are hypothesis testing an important component of statistical i.pdf
11- Why are hypothesis testing an important component of statistical i.pdf11- Why are hypothesis testing an important component of statistical i.pdf
11- Why are hypothesis testing an important component of statistical i.pdf
 
1) Explain in detail the rola of watar in tha liaht danendent reaction.pdf
1) Explain in detail the rola of watar in tha liaht danendent reaction.pdf1) Explain in detail the rola of watar in tha liaht danendent reaction.pdf
1) Explain in detail the rola of watar in tha liaht danendent reaction.pdf
 
Partner bonuses- statement of partnership equity The partnership of An (1).pdf
Partner bonuses- statement of partnership equity The partnership of An (1).pdfPartner bonuses- statement of partnership equity The partnership of An (1).pdf
Partner bonuses- statement of partnership equity The partnership of An (1).pdf
 
mRNAs are transcribed in a direction- The 5 end of the mRNA is on the.pdf
mRNAs are transcribed in a direction- The 5 end of the mRNA is on the.pdfmRNAs are transcribed in a direction- The 5 end of the mRNA is on the.pdf
mRNAs are transcribed in a direction- The 5 end of the mRNA is on the.pdf
 
Let X be a discrete random variable following a binomial distribution.pdf
Let X be a discrete random variable following a binomial distribution.pdfLet X be a discrete random variable following a binomial distribution.pdf
Let X be a discrete random variable following a binomial distribution.pdf
 
Jan- 19 Sold merchandise on account to Dr- Kyle Norby- $17-960- The co.pdf
Jan- 19 Sold merchandise on account to Dr- Kyle Norby- $17-960- The co.pdfJan- 19 Sold merchandise on account to Dr- Kyle Norby- $17-960- The co.pdf
Jan- 19 Sold merchandise on account to Dr- Kyle Norby- $17-960- The co.pdf
 
(4) Consider YBin(x-p)- Prove that xyp in probability as m.pdf
(4) Consider YBin(x-p)- Prove that xyp in probability as m.pdf(4) Consider YBin(x-p)- Prove that xyp in probability as m.pdf
(4) Consider YBin(x-p)- Prove that xyp in probability as m.pdf
 
When is organizational culture considered a liability Selec.pdf
When is organizational culture considered a liability Selec.pdfWhen is organizational culture considered a liability Selec.pdf
When is organizational culture considered a liability Selec.pdf
 
Vince just took an aptitude test and discovered that he is w.pdf
Vince just took an aptitude test and discovered that he is w.pdfVince just took an aptitude test and discovered that he is w.pdf
Vince just took an aptitude test and discovered that he is w.pdf
 
Use Nikes financial information below Prepare a vertical a.pdf
Use Nikes financial information below Prepare a vertical a.pdfUse Nikes financial information below Prepare a vertical a.pdf
Use Nikes financial information below Prepare a vertical a.pdf
 
Tip I ve tip II hatas arasndaki fark nedir Birini se A.pdf
Tip I ve tip II hatas arasndaki fark nedir  Birini se  A.pdfTip I ve tip II hatas arasndaki fark nedir  Birini se  A.pdf
Tip I ve tip II hatas arasndaki fark nedir Birini se A.pdf
 
To use the styles in an external style sheet a you use the.pdf
To use the styles in an external style sheet a you use the.pdfTo use the styles in an external style sheet a you use the.pdf
To use the styles in an external style sheet a you use the.pdf
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 

Recently uploaded (20)

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 

Find and fix all the errors in the following program- userInput - int.pdf

  • 1. Find and fix all the errors in the following program. userInput = int (input ("Enter a number: ")) if userInput > 5 : total = total + userInput * 0.5 print("Total: ", total) else: print("The input value is invalid.")