Where does the Entry() constructor come from?

Step 5, “Adding an Entry” requires using an Entry() constructor which, to my memory, isn’t previously mentioned in this lesson. I understand its purpose–so that you have an object.key and an object.value. But why isn’t it mentioned or explained before now? Why isn’t building it part of this lesson?

(If this constructor was addressed earlier and I’m missing something, please correct me!)

Click here to open the screen in a new tab.

@fjohngaughan: refer to Step 1 (Learn data science with Python and R projects)

I believe you are referring to this step when the hash table/dictionary is constructed. Entry is quite arbitrary. You can actually name it whatever you want and its purpose is to initialize the dictionary (i.e. the “root” node). In DQ’s case since we are referring to a dictionary entry, thus the name is used (to make it self explanatory and easy to understand).

There you go! That answers my question, thank you. Maybe this doesn’t confuse a lot of people, but for me, it was far enough back in the tutorial that it didn’t ring a bell.