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. defining an empty set
  14. Adding an element to a sat (add)
  15. Merging one set into another set (update)
  16. set operations
  17. Shared dictionary
  18. Exercise: count characters
  19. Exercise: count words from a file
  20. Exercise: Apache log
  21. Exercise: Combine lists again
  22. Exercise: counting DNA bases
  23. Exercise: Count Amino Acids
  24. Solution: count characters
  25. Solution: count words
  26. Solution: Apache log
  27. Solution: Combine lists again
  28. Solution: counting DNA bases
  29. Solution: Count Amino Acids
  30. Loop over dictionary keys
  31. Do not change dictionary in loop