Unit 2 Task 7 - Solution

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

Solution - Task 7: Freezing day on the farm

← Back to task


One possible program:

temp_celsius = float(input("Morning temperature (C): "))

if temp_celsius <= 0:
    print("At or below freezing - ice is possible.")
else:
    print("Above freezing.")