SlideShare a Scribd company logo
Write a code in python to accept 3 test score and display them for a student. Use a while loop for
this code. Sample output: Enter test score: 90 Test score you entered is : 90 Enter test score: 80
Test score you entered is 80 Enter test score: 85 Test score you entered is 85
question 2
2. Your friend Chris wants you to convert Fahrenheit (F) to celsius (C). She has asked you to write
a program that displays a table of temperature in C with their values converted to F. The formula
for converting C to F is F =((9/5)*C + 32). After thinking about this table of values, you decide that
you will write a for loop. The list of values that the loop will iterate over will be Celsius(C). In the
loop you will call the range function like this: range(10, 51, 5) . Notice that the third argument
specifies 5 as the step value. This means that the numbers in the list will be 10, 15, 20, and so
forth. The second
argument specifies 51 as the sequences ending limit, so the last number in the sequence will be
50. Inside the loop you will use the target variable to calculate a Fahrenheit

More Related Content

Similar to Write a code in python to accept 3 test score and display th.pdf

Chapter Eight(2)
Chapter Eight(2)Chapter Eight(2)
Chapter Eight(2)
bolovv
 
OverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxOverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docx
gerardkortney
 
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
ganeshkarthy
 
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfTask #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
info706022
 
Csc1100 lecture05 ch05
Csc1100 lecture05 ch05Csc1100 lecture05 ch05
Csc1100 lecture05 ch05
IIUM
 

Similar to Write a code in python to accept 3 test score and display th.pdf (16)

programs of c www.eakanchha.com
 programs of c www.eakanchha.com programs of c www.eakanchha.com
programs of c www.eakanchha.com
 
40+ examples of user defined methods in java with explanation
40+ examples of user defined methods in java with explanation40+ examples of user defined methods in java with explanation
40+ examples of user defined methods in java with explanation
 
algo1
algo1algo1
algo1
 
Chapter Eight(2)
Chapter Eight(2)Chapter Eight(2)
Chapter Eight(2)
 
OverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxOverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docx
 
Travaux Pratique Matlab + Corrige_Smee Kaem Chann
Travaux Pratique Matlab + Corrige_Smee Kaem ChannTravaux Pratique Matlab + Corrige_Smee Kaem Chann
Travaux Pratique Matlab + Corrige_Smee Kaem Chann
 
Foxpro (1)
Foxpro (1)Foxpro (1)
Foxpro (1)
 
COM1407: Type Casting, Command Line Arguments and Defining Constants
COM1407: Type Casting, Command Line Arguments and Defining Constants COM1407: Type Casting, Command Line Arguments and Defining Constants
COM1407: Type Casting, Command Line Arguments and Defining Constants
 
Md university cmis 102 week 3 hands
Md university cmis 102 week 3 handsMd university cmis 102 week 3 hands
Md university cmis 102 week 3 hands
 
C++ Programming Homework Help
C++ Programming Homework HelpC++ Programming Homework Help
C++ Programming Homework Help
 
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
 
c++ Question
c++  Questionc++  Question
c++ Question
 
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdfTask #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
Task #1 Correcting Logic Errors in FormulasCopy and compile the so.pdf
 
Csc1100 lecture05 ch05
Csc1100 lecture05 ch05Csc1100 lecture05 ch05
Csc1100 lecture05 ch05
 
Csphtp1 05
Csphtp1 05Csphtp1 05
Csphtp1 05
 
C_Lab Manual_Part A.docx
C_Lab Manual_Part A.docxC_Lab Manual_Part A.docx
C_Lab Manual_Part A.docx
 

More from abhicellplaza

Three species of noctumal fiying squirrels are found in Nort.pdf
Three species of noctumal fiying squirrels are found in Nort.pdfThree species of noctumal fiying squirrels are found in Nort.pdf
Three species of noctumal fiying squirrels are found in Nort.pdf
abhicellplaza
 
Jennette the senior administrative assistant has just lear.pdf
Jennette the senior administrative assistant has just lear.pdfJennette the senior administrative assistant has just lear.pdf
Jennette the senior administrative assistant has just lear.pdf
abhicellplaza
 

More from abhicellplaza (20)

Rickettsia bacteria always live as parasites inside eukaryot.pdf
Rickettsia bacteria always live as parasites inside eukaryot.pdfRickettsia bacteria always live as parasites inside eukaryot.pdf
Rickettsia bacteria always live as parasites inside eukaryot.pdf
 
Question 3 4 marks Suppose fx1ex0x0ow a Find the .pdf
Question 3 4 marks Suppose fx1ex0x0ow a Find the .pdfQuestion 3 4 marks Suppose fx1ex0x0ow a Find the .pdf
Question 3 4 marks Suppose fx1ex0x0ow a Find the .pdf
 
which is not proper determine the amplitude of the t and .pdf
which is not proper determine the amplitude of the t and .pdfwhich is not proper determine the amplitude of the t and .pdf
which is not proper determine the amplitude of the t and .pdf
 
Which states consistently exempt nonprofit entities from tra.pdf
Which states consistently exempt nonprofit entities from tra.pdfWhich states consistently exempt nonprofit entities from tra.pdf
Which states consistently exempt nonprofit entities from tra.pdf
 
Three species of noctumal fiying squirrels are found in Nort.pdf
Three species of noctumal fiying squirrels are found in Nort.pdfThree species of noctumal fiying squirrels are found in Nort.pdf
Three species of noctumal fiying squirrels are found in Nort.pdf
 
Which of the following is considered a clinical documentatio.pdf
Which of the following is considered a clinical documentatio.pdfWhich of the following is considered a clinical documentatio.pdf
Which of the following is considered a clinical documentatio.pdf
 
wheb is an action potentail triggered when EPSPS exceeds IP.pdf
wheb is an action potentail triggered when EPSPS exceeds IP.pdfwheb is an action potentail triggered when EPSPS exceeds IP.pdf
wheb is an action potentail triggered when EPSPS exceeds IP.pdf
 
The value of a such that PaltZlta074 is 03320643.pdf
The value of a such that PaltZlta074 is 03320643.pdfThe value of a such that PaltZlta074 is 03320643.pdf
The value of a such that PaltZlta074 is 03320643.pdf
 
Qusstont1 DDT is a pesticide that has been banbed from use i.pdf
Qusstont1 DDT is a pesticide that has been banbed from use i.pdfQusstont1 DDT is a pesticide that has been banbed from use i.pdf
Qusstont1 DDT is a pesticide that has been banbed from use i.pdf
 
stimulates stomata guard cells to low water availability pu.pdf
stimulates stomata guard cells to low water availability pu.pdfstimulates stomata guard cells to low water availability pu.pdf
stimulates stomata guard cells to low water availability pu.pdf
 
Hwk 4 Ch 4 Score 423 423 answered E and F are mutually.pdf
Hwk 4 Ch 4 Score 423 423 answered E and F are mutually.pdfHwk 4 Ch 4 Score 423 423 answered E and F are mutually.pdf
Hwk 4 Ch 4 Score 423 423 answered E and F are mutually.pdf
 
Suppose you are given the following requirements for a simpl.pdf
Suppose you are given the following requirements for a simpl.pdfSuppose you are given the following requirements for a simpl.pdf
Suppose you are given the following requirements for a simpl.pdf
 
El propsito de este ejercicio es aumentar su conciencia sob.pdf
El propsito de este ejercicio es aumentar su conciencia sob.pdfEl propsito de este ejercicio es aumentar su conciencia sob.pdf
El propsito de este ejercicio es aumentar su conciencia sob.pdf
 
Choose one of the two topics below 1 Think of a disease .pdf
Choose one of the two topics below 1 Think of a disease .pdfChoose one of the two topics below 1 Think of a disease .pdf
Choose one of the two topics below 1 Think of a disease .pdf
 
Subject Organizational Behaviour This is a long essay quest.pdf
Subject Organizational Behaviour This is a long essay quest.pdfSubject Organizational Behaviour This is a long essay quest.pdf
Subject Organizational Behaviour This is a long essay quest.pdf
 
How does social networking artificial intelligence andor .pdf
How does social networking artificial intelligence andor .pdfHow does social networking artificial intelligence andor .pdf
How does social networking artificial intelligence andor .pdf
 
Jennette the senior administrative assistant has just lear.pdf
Jennette the senior administrative assistant has just lear.pdfJennette the senior administrative assistant has just lear.pdf
Jennette the senior administrative assistant has just lear.pdf
 
En Princeton valoramos las diversas perspectivas y la capac.pdf
En Princeton valoramos las diversas perspectivas y la capac.pdfEn Princeton valoramos las diversas perspectivas y la capac.pdf
En Princeton valoramos las diversas perspectivas y la capac.pdf
 
Find the probability using the normal distribution P0ltz.pdf
Find the probability using the normal distribution P0ltz.pdfFind the probability using the normal distribution P0ltz.pdf
Find the probability using the normal distribution P0ltz.pdf
 
If water labeled with 18O is added to a suspension of photos.pdf
If water labeled with 18O is added to a suspension of photos.pdfIf water labeled with 18O is added to a suspension of photos.pdf
If water labeled with 18O is added to a suspension of photos.pdf
 

Recently uploaded

Recently uploaded (20)

How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
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
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
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
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
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
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Write a code in python to accept 3 test score and display th.pdf

  • 1. Write a code in python to accept 3 test score and display them for a student. Use a while loop for this code. Sample output: Enter test score: 90 Test score you entered is : 90 Enter test score: 80 Test score you entered is 80 Enter test score: 85 Test score you entered is 85 question 2 2. Your friend Chris wants you to convert Fahrenheit (F) to celsius (C). She has asked you to write a program that displays a table of temperature in C with their values converted to F. The formula for converting C to F is F =((9/5)*C + 32). After thinking about this table of values, you decide that you will write a for loop. The list of values that the loop will iterate over will be Celsius(C). In the loop you will call the range function like this: range(10, 51, 5) . Notice that the third argument specifies 5 as the step value. This means that the numbers in the list will be 10, 15, 20, and so forth. The second argument specifies 51 as the sequences ending limit, so the last number in the sequence will be 50. Inside the loop you will use the target variable to calculate a Fahrenheit