Adding an item to the dictionary is very simple; just specify a new key in the square brackets along with the dictionary. The syntax is as follows:
dict[new_key] = value
Consider the following example:
>>> port = {80: "HTTP", 23 : "Telnet"}
>>> port[110]="POP"
>>> port
{80: 'HTTP', 110: 'POP', 23: 'Telnet'}
>>>
In the preceding example, we added the "POP" protocol.