# Handle all the exceptions!
#Setup
actor = {"name": "John Cleese", "rank": "awesome"}

#Function to modify, should return the last name of the actor [try except block]
def get_last_name():
    try:
        return actor["last_name"]
    except:
        namelist=[]
        namelist= actor["name"].split()
        return namelist[1]


#Test code
get_last_name()
print ("All exceptions caught! Good job!")
print ("The actor's last name is %s" % get_last_name())