Python Dictionary Construct MethodPython Functions


Syntax

Example

dict1 = {'China': '1', 'India': '2', 'Russia': '3'}

dict2 = {'Tom': '1', 'Gerryzhang': '2', 'linda': '3'}
dict = {key1}

Parameters

The method doesn’t take any parameters.

Return Value

The method doesn’t return any value.

© 2021 Programtips.org, all rights reserved. Privacy Policy | Contact Us