Dictionary (hash)


  1. Dictionary
  2. keys
  3. Loop over keys
  4. Loop using items
  5. values
  6. Not existing key
  7. Get key
  8. Does the key exist?
  9. Does the value exist?
  10. Delete key
  11. List of dictionaries
  12. sets
  13. set operations
  14. Shared dictionary
  15. Exercise: count characters
  16. Exercise: count words from a file
  17. Exercise: Apache log
  18. Exercise: Combine lists again
  19. Solution: count characters
  20. Solution: count words
  21. Solution: Apache log
  22. Solution: Combine lists again
  23. Loop over dictionary keys
  24. Do not change dictionary in loop