Python Dictionary update() method

The dictionary.update() method in Python inserts the specified items to the dictionary.

Syntax

Parameter

iterable- This parameter represents a dictionary or an iterable object with key value pairs, that will be inserted to the dictionary.

Return

None

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This