Unit 2 Task 27 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 27: US road trip temperatures

← Back to task


One possible program:

for day in range(7):
    celsius = float(input("Celsius for day " + str(day + 1) + ": "))
    fahrenheit = celsius * 9 / 5 + 32
    print("Day", day + 1, ":", celsius, "C =", round(fahrenheit, 1), "F")