chapter 9

12345678910111213141516171819202122232425262728293031323334353637383940
Across
  1. 4. `{key: value for (key, value) in iterable}`.
  2. 6. Returns a view object of all values in the dictionary.
  3. 8. `my_set.add(element)`, `my_set.remove(element)`.
  4. 9. Reads an object from a file.
  5. 11. Checks if set1 is a superset of set2.
  6. 16. Can include int, float, string, list, another dictionary, etc.
  7. 19. An immutable element used to reference a value in a dictionary.
  8. 20. Deletes a key-value pair from a dictionary.
  9. 21. Checks if a set is a superset of another.
  10. 23. The data associated with a specific key in a dictionary.
  11. 25. Returns elements present in one set but not the other.
  12. 27. Closes the file object.
  13. 28. Retrieves the value for a given key, optional default if key not found.
  14. 29. Returns the number of elements in the set.
  15. 30. Checks if set2 is a subset of set1.
  16. 32. Opens a file.
  17. 35. Returns common elements between sets.
  18. 36. Returns a view object of all keys in the dictionary.
  19. 37. Removes all elements from the dictionary.
  20. 38. Operator for union of two sets.
  21. 39. `{key: value for (key, value) in iterable if condition}`.
Down
  1. 1. for Creating a Set: `my_set = {1, 2, 3}` or `set()`.
  2. 2. :process of converting a Python object into a format that can be easily stored or transmitted, typically as a string or a byte stream.
  3. 3. `my_dict['key']`.
  4. 5. Checks if a set is a subset of another.
  5. 7. Combines elements from two sets.
  6. 8. `my_dict['new_key'] = 'new_value'`.
  7. 10. A collection of key-value pairs where each key is unique.
  8. 12. `my_dict = {'key': 'value'}`.
  9. 13. Removes a key and returns its value.
  10. 14. Returns a view object containing key-value pairs.
  11. 15. for Creating an Empty Dictionary: `my_dict = {}`.
  12. 17. Elements in either set but not in both.
  13. 18. Writes an object to a file (in the context of serializing).
  14. 22. An unordered collection of unique elements.
  15. 24. Checks if a key is in the dictionary.
  16. 26. Removes and returns a (key, value) pair.
  17. 31. in: Checks if a key is not in the dictionary.
  18. 33. not in and Sets: Checks for element presence or absence.
  19. 34. Returns the number of key-value pairs in the dictionary.
  20. 40. Comprehension: `{expression for item in iterable}`.