Episode 10 – Dictionaries and Hash tables

The Code Snippets Podcast
The Code Snippets Podcast
Episode 10 - Dictionaries and Hash tables
/

This episode i talk about Dictionaries and Hash tables

Dictionaries Examples:

d = {
    <key>: <value>,
    <key>: <value>,
      .
      .
      .
    <key>: <value>
}
Typesoffruit = {
    'Apple': 'red',
    'Banana' : 'yellow',
}

Hash table:

details =  {'Al': {'Address': 'UK',
                   'email': 'test@test.com,
                   'phone':'11111'},
            'john': {'Address': 'UK',
                   'email': 'test@test2.com,
                   'phone':'2222'}}