Line 32 has an error, the variable name
if eggs_delivered == True and room[name] == 'Entrance way':instead of string 'name'
if eggs_delivered == True and room['name'] == 'Entrance way':Also in the function below
def msg(room): print(room) if room[msg]==' ': return "you have entered the " + room['name']+' ' else: return room['msg']
if room[msg]==' ':
is trying to use the function itself as a key i think you meant to have if room['msg']==' ':