the removal of an element from dictionary can be done in several wayswhich we'll discuss one-by-one in this sectionthe del keyword can be used to remove the element with the specified key for exampledict_sample "company""toyota""model""premio""year" del dict_sample["year"print(dict_sampleoutput{'company''toyota''model''premio'we called the del keyword followed by the dictionary name inside the square brackets that follow the dictionary namewe passed the key of the element we need to delete from the dictionarywhich in this example was "yearthe entry for "yearin the dictionary was then deleted another type to delete key-value pair is to use the pop(method and pass the key of the entry to be deleted as the argument to the function for exampleoutputdict_sample "company""toyota""model""premio""year" dict_sample pop("year"print(dict_samplewe invoked that pop(method by appending it with the dictionary name andin this example the entry for "yearin the dictionary will be deleted