What is this stuff?

room[‘outside’].n_to = room[‘foyer’]

what is this .n_to part called, is room a list? break it down for me

Hey there,

please use the Get Help button in a lesson to create a forum topic and fill in the questions.


My best guess:
room is an object and outside is one of its properties.
n_to then is a property of room['outside'].
Then you assign the current value of the foyer property to n_to.

You can also use room.outside instead of room['outside'].

1 Like