Dictionary (hash)


  1. Dictionary
  2. keys
  3. Loop over keys
  4. Do not change dictionary in loop
  5. Loop using items
  6. Not existing key
  7. Does the key exist?
  8. Delete key
  9. List of dictionaries
  10. Exercise: count characters
  11. Exercise: count words from a file
  12. Exercise: Apache log
  13. Solution: count characters
  14. Solution: count words
  15. Solution: Apache log
  16. values