Web Analytics

Python dict.update() Method

Dictionary Method โ€ข Update

The update() method updates the dictionary with the specified key-value pairs.

Syntax

dictionary.update(iterable)

Parameters

Parameter Description
iterable Required. A dictionary or an iterable object with key value pairs, that will be inserted to the dictionary

Return Value

None. The dictionary is modified in place.

Example

Using the update() method:

Output
Click Run to execute your code

Related Functions