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. Exercise: count characters
  15. Exercise: count words from a file
  16. Exercise: Apache log
  17. Solution: count characters
  18. Solution: count words
  19. Solution: Apache log
  20. Loop over dictionary keys
  21. Do not change dictionary in loop