Mega Code Archive

 
Categories / Python Tutorial / Dictionary
 

Dictionaries may be created using the factory function dict()

fdict = dict((['x', 1], ['y', 2])) print fdict