Dressing up for Degrees: A Weather Wear Guide

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
You're helping a friend decide what to wear based on the weather. You have a piece of code that outputs clothing advice based on the temperature input by a user, but the lines of code are jumbled. Reorder the lines of code so that it correctly advises wearing a coat and scarf if it's below 0 degrees, a light sweater if it's 15 degrees or below, and a T-shirt if it’s warmer.
Reorder lines using drag or arrows. Adjust indentation with left buttons
                else:
              
                print("T-shirt weather!\n")
              
                print("Time for a light sweater.\n")
              
                elif temperature <= 15:
              
                temperature = int(input("Enter the temperature: "))
              
                print("Wear a coat and scarf.\n")
              
                if temperature < 0:
              

Create a free account to access the full topic