to access the dictionary itemswe need to pass the key inside square brackets [for exampledict_sample "company""toyota""model""premio""year" dict_sample["model"print(xoutputpremio we created dictionary named dict_sample variable named is then created and its value is set to be the value for the key "modelin the dictionary updating dictionary after adding value to dictionary we can then modify the existing dictionary element you use the key of the element to change the corresponding value for exampledict_sample "company""toyota""model""premio""year" dict_sample["year" print(dict_sampleoutput{'year' 'model''premio''company''toyota'in this example you can see that we have updated the value for the key "yearfrom the old value of to new value of