Python Dictionary items() Method

Python Dictionary items() Method

  • The items() method returns a view object. The view object contains the key-value pairs of the dictionary, as tuples in a list.

Syntax

  • dictionary.items()  

Parameter Values

  • The items() method doesn't take any parameters.



 

Comments