SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

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