SlideShare una empresa de Scribd logo
1 de 2
Descargar para leer sin conexión
Python code-
miles = float(input("Hello. Please enter the number of miles you would like to convert to
kilometers: "))
if miles >= 0:
kilometers = miles * 1.6
print(float(miles), "miles is equal to", float(kilometers), "kilometers")
gallons = float(input("Please enter the number of gallons you would like to convert to liters: "))
if gallons > 0:
liters = gallons * 3.9
print(float(gallons),"gallons is equal to", float(liters), "liters")
pounds = float(input("Please enter the number of pounds you would like to convert to kilograms:
"))
if pounds > 0:
kilograms = pounds * 0.45
print(float(pounds), "pounds is equal to", float(kilograms), "kilograms")
Inches = float(input("Please enter the number of Inches you would like to convert to centimeters:
"))
if Inches > 0:
centimeters = Inches * 2.54
print(float(Inches), "Inches is equal to", float(centimeters), "centimeters")
fahrenheit = int(input("Please enter the how many degrees fahrenheit you would like to convert
to celsius: "))
if fahrenheit < 1000:
celsius = (fahrenheit - 32) * (5/9)
print(float(fahrenheit), "degrees fahrenheit is equal to", float(celsius), "degrees celsius.
Congratulations, you have converted all values.")
else:
print("ERROR. You have entered an incorrect degrees fahrenheit. Please try again")
else:
print("ERROR. You have entered an incorrect number of Inches. Please try again")
else:
print("ERROR. You have entered an incorrect number of pounds. Please try again")
else:
print("ERROR. You have entered an incorrect number gallons. Please try again")
else:
print("ERROR. You have entered an incorrect number of miles. Please try again")
******Please answer the python question using loops, NO functions**********

Más contenido relacionado

Más de alfacomputers2

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfalfacomputers2
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfalfacomputers2
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfalfacomputers2
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfalfacomputers2
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfalfacomputers2
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfalfacomputers2
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfalfacomputers2
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfalfacomputers2
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfalfacomputers2
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfalfacomputers2
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfalfacomputers2
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfalfacomputers2
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfalfacomputers2
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfalfacomputers2
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfalfacomputers2
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfalfacomputers2
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfalfacomputers2
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfalfacomputers2
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfalfacomputers2
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfalfacomputers2
 

Más de alfacomputers2 (20)

Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdfQ1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
Q1. Imagine a researcher starting work on the obesity epidemic. In t.pdf
 
Q1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdfQ1 What is allocation or absorption The margin allocated to each .pdf
Q1 What is allocation or absorption The margin allocated to each .pdf
 
Q1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdfQ1 Which white blood cell assists in the regulation of the immune re.pdf
Q1 Which white blood cell assists in the regulation of the immune re.pdf
 
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdfQ1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
Q1 Find the (a) mean, (b) median, (c) mode, and (d) midrange for th.pdf
 
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdfQ.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
Q.4 Consider the experiment of rolling a pair of dice. Suppose that .pdf
 
PyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdfPyJa Institute is an institute set up to manage the following progra.pdf
PyJa Institute is an institute set up to manage the following progra.pdf
 
PurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdfPurposeMany Americans are very generous donating their time, money.pdf
PurposeMany Americans are very generous donating their time, money.pdf
 
Provide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdfProvide an example of a business that grew too fast. What where the .pdf
Provide an example of a business that grew too fast. What where the .pdf
 
PurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdfPurposeDetermining who has the right to claim the dependency exem.pdf
PurposeDetermining who has the right to claim the dependency exem.pdf
 
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdfPuello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
Puello Corporation ha proporcionado los siguientes datos sobre un pr.pdf
 
Provided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdfProvided their employers followed the recommended guidelines, which .pdf
Provided their employers followed the recommended guidelines, which .pdf
 
Provide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdfProvide a reporting information for the POM+ project. MSProject has .pdf
Provide a reporting information for the POM+ project. MSProject has .pdf
 
Prostitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdfProstitution and solicitation are referred to as victimless crimes. .pdf
Prostitution and solicitation are referred to as victimless crimes. .pdf
 
Proporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdfProporcione una breve historia del desarrollo del federalismo en los.pdf
Proporcione una breve historia del desarrollo del federalismo en los.pdf
 
Project topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdfProject topic - Development of a Predictive Maintenance System usin.pdf
Project topic - Development of a Predictive Maintenance System usin.pdf
 
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdfPROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
PROJECT PAPER TOPIC Developing a security policy framework for smal.pdf
 
Professor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdfProfessor Donald Henderson first pointed out how discussions of ambi.pdf
Professor Donald Henderson first pointed out how discussions of ambi.pdf
 
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdfProfes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
Profes�r Rodr�guez redaksiyon �almasn y�r�tt��nde, bask ve bilgisaya.pdf
 
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdfProfit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
Profit Margins and Sustainable Growth The Sandar Co. has a debt�equi.pdf
 
Process integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdfProcess integration addresses the integration of tools where differe.pdf
Process integration addresses the integration of tools where differe.pdf
 

Último

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Último (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Python code-miles = float(input(Hello. Please enter the number .pdf

  • 1. Python code- miles = float(input("Hello. Please enter the number of miles you would like to convert to kilometers: ")) if miles >= 0: kilometers = miles * 1.6 print(float(miles), "miles is equal to", float(kilometers), "kilometers") gallons = float(input("Please enter the number of gallons you would like to convert to liters: ")) if gallons > 0: liters = gallons * 3.9 print(float(gallons),"gallons is equal to", float(liters), "liters") pounds = float(input("Please enter the number of pounds you would like to convert to kilograms: ")) if pounds > 0: kilograms = pounds * 0.45 print(float(pounds), "pounds is equal to", float(kilograms), "kilograms") Inches = float(input("Please enter the number of Inches you would like to convert to centimeters: ")) if Inches > 0: centimeters = Inches * 2.54 print(float(Inches), "Inches is equal to", float(centimeters), "centimeters") fahrenheit = int(input("Please enter the how many degrees fahrenheit you would like to convert to celsius: ")) if fahrenheit < 1000: celsius = (fahrenheit - 32) * (5/9) print(float(fahrenheit), "degrees fahrenheit is equal to", float(celsius), "degrees celsius. Congratulations, you have converted all values.") else: print("ERROR. You have entered an incorrect degrees fahrenheit. Please try again") else: print("ERROR. You have entered an incorrect number of Inches. Please try again") else:
  • 2. print("ERROR. You have entered an incorrect number of pounds. Please try again") else: print("ERROR. You have entered an incorrect number gallons. Please try again") else: print("ERROR. You have entered an incorrect number of miles. Please try again") ******Please answer the python question using loops, NO functions**********