# Simple branching — like the hat choosing a house
trait = "brave"

if trait == "brave":
    house = "Gryffindor"
elif trait == "loyal":
    house = "Hufflepuff"
elif trait == "clever":
    house = "Ravenclaw"
else:
    house = "Slytherin"

print("The hat cries:", house + "!")
