# Create student record (dictionary)
student = {
    "name": "Penny Rice",
    "major": "Art",
    "GPA": 3.2,
    "level": "freshman",
    "is_resident": True
}
if student["is_resident"]:
    hall = input("Enter residence hall for " + student["name"] + ": ")
    print(student["name"], "lives in", hall)
else:
    print(student["name"], "is a commuter.")

if student["level"] == "freshman":
    print(student["name"], "needs to have an orientation class.")
elif student["level"] == "sophomore":
    print(student["name"], "needs to schedule a curriculum planning session.")
else:
    print(student["name"], "needs to make a graduation readiness appointment.")

# Promote Penny to sophomore
student["level"] = "sophomore"
print("\nAfter promotion to sophomore:")

if student["level"] == "freshman":
    print("-", student["name"], "needs to have an orientation class.")
elif student["level"] == "sophomore":
    print(student["name"], "needs to schedule a curriculum planning session.")
else:
    print(student["name"], "needs to make a graduation readiness appointment.")
