Skip to the content.

3.7 homework

hacks

# nested conditional
score = 85  # student's score

if score < 60:
    print("Failing")
elif 60 <= score < 75:
    print("Passing")
else:
    print("Excellent")

    # Additional nested conditions for excellent performance
    if score >= 90:
        print("You are in the Honor Roll!")
    elif score >= 85:
        print("Great job, keep up the good work!")
    else:
        print("Good performance, but there's room for improvement.")
Excellent
Great job, keep up the good work!