Mega Code Archive

 
Categories / Python Tutorial / Statement
 

KeyError

aDict = {'host': 'earth', 'port': 80} print aDict['server']