Your assignment is to write a program that converts a list of temperatures in Fahrenheit to Celsius and displays the result. The formula to convert Fahrenheit to Celsius is Celisus =(Fahrenheit-32)(5/9). You may find slides Computer Programming B slide presentation helpful. Your program will be very similar to the program shown on slide X.
Suggested Steps to complete this assignment:
- Log into codingrooms and find the
TemperatureConversion
assignment. - Create a list of temperatures with code like
temps = [212,32,-40]
- Create a
for each
loop to traverse the list andprint()
the numbers in the list to the screen - Now add more
print()
statements to the for each loop that labels the temperatures, converts them to Celsius and displays the results. Remember that an extra argumentend=' '
in aprint()
will end the line with a space rather than a newline character. Your output should look something like this.
- Submit a link to your python program to the google classroom assignment.