Mega Code Archive

 
Categories / Python Tutorial / Dictionary
 

Popitem pops off a random item

d = {'url': 'http://www.python.org', 'spam': 0, 'title': 'Python Web Site'} d.popitem() print d