Quiz: if and else

What does this program print?

temperature = 15
if temperature > 20:
    print("Shorts")
else:
    print("Jacket")
print("Have a nice day")

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

4/15