sscasc@tumkur del keyword is used to delete the entire dictionary or the dictionary' items syntax to delete dictionary' itemdel dict[keyconsidering the following code snippet for exampleport { "http" "telnet" "https"del port[ print(port{ 'http' 'https'syntax to delete the entire dictionarydel dict_name consider the following exampleport { "http" "telnet" "https"del port print(porttraceback (most recent call last)file ""line in port nameerrorname 'portis not defined the preceding error shows that the port dictionary has been deleted updating the values of the dictionary to update the dictionaryjust specify the key in the square bracket along with the dictionary name and assigning new value the syntax is as followsdict[keynew_value exampleport { "http" "smtp" "https"in the preceding dictionarythe value of port is "smtp"but in realityport number is for telnet protocol let' update the preceding dictionary with the following codeport { "http" "smtp" "https"printport{ 'http' 'https' 'smtp'port[ "telnetprint(port{ 'http' 'https' 'telnet'adding an item to the dictionary item can be added to the dictionary just by specifying new key in the square brackets along with the dictionary the syntax is as followsdict[new_keyvalue exampleport { "http" "telnet"port[ ]="popprint(port{ 'http' 'pop' 'telnet'sp_python programming