Python Dictionaries

Posted by linuxer on Nov 18, 2016 8:03 AM EDT
linuxconfig.org; By Nick Congleton
Mail this story
Print this story

Somebody hit lists with gamma rays. Okay, so Dictionaries aren't the Incredible Hulk, but they are supercharged in what they can do. In other languages, dictionaries are referred to as hashes, associative arrays, and associative lists. It's probably best to think of them as associative lists because that's exactly what they are. Dictionaries are lists that associate two values with one another. To think of it in terms of an actual dictionary, they associate a word, or key with a definition, or value. They function sort of like a list with custom indexes.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, Linux, Python

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.