Create and Assign Dictionaries

Creating dictionaries simply involves assigning a dictionary to a variable, regardless of whether the dictionary has elements or not:

Example

>>> dict = {'name','earth','port',80}
>>> dict
set([80, 'earth', 'port', 'name'])
>>> dict1 = {'mission',235,'code',636}
>>> dict,dict1
(set([80, 'earth', 'port', 'name']), set(['code', 636, 'mission', 235]))