Across
- 5. The various types of values that can be stored in a dictionary, including integers, floats, strings, lists, tuples, and even other dictionaries
- 7. The method of accessing the value associated with a specific key in a dictionary using square brackets.
- 8. The specific way of writing code to initialize and define a set in Python, using curly braces {}.
- 9. returns a view object containing the keys in a dictionary.
- 16. The way to create a dictionary without any initial key-value pairs.
- 18. removes and returns the value associated with a specified key in a dictionary
- 20. A built-in function in Python used to open a file for reading, writing, or appending.
- 23. A keyword in Python used to delete a key-value pair from a dictionary.
- 24. An unordered collection of unique elements in Python, represented by curly braces {}.
- 26. A method in the json module used to serialize a Python object to a JSON formatted string and write it to a file.
- 29. A set operation in Python that returns a new set containing elements present in either of the sets, but not in both.
- 30. A Python data structure that stores a collection of key-value pairs, allowing efficient retrieval and modification of values based on their associated keys.
- 31. The built-in function len to get the number of elements in a set.
- 34. A set operation in Python that combines two sets, returning a new set containing all unique elements from both sets.
- 35. The unique identifier in a dictionary that is used to access and retrieve the associated value.
- 36. A built-in function in Python that returns the number of items (key-value pairs) in a dictionary.
- 37. A comparison in Python to check if set2 is a subset of set1
- 38. A concise way of creating sets in Python using a single line of code, similar to list and dictionary comprehensions.
- 39. Membership operators in Python used to check whether an element is present (in) or not present (not in) in a set.
Down
- 1. The process of adding and removing elements from a set using the add and remove methods.
- 2. A method used to close an open file in Python after performing file operations.
- 3. The process of adding new key-value pairs to a dictionary using the assignment operator.
- 4. A method in the json module used to read a JSON formatted string from a file and deserialize it into a Python object
- 6. The inclusion of a condition in a dictionary comprehension to filter items based on a specific criterion.
- 10. The specific way of writing code to initialize and define a dictionary in Python, using curly braces {} and separating key-value pairs with colons.
- 11. returns a view object containing the key-value pairs as tuples in a dictionary.
- 12. Membership operators in Python used to check whether a key is present (in) or not present (not in) in a dictionary.
- 13. Methods in Python used to check if one set is a subset or superset of another set.
- 14. returns a view object containing the values in a dictionary
- 15. A set operation in Python that returns a new set containing common elements from two sets.
- 17. A concise way of creating dictionaries in Python using a single line of code, often with the inclusion of a conditional statement.
- 19. A method in Python that removes and returns the last key-value pair from a dictionary as a tuple
- 21. Another way to perform the union of two sets in Python, using the | operator.
- 22. The data associated with a key in a dictionary. It can be of any data type, such as integers, strings, lists, or other dictionaries.
- 25. A method in Python that removes all key-value pairs from a dictionary, leaving it empty.
- 27. used to retrieve the value associated with a key from a dictionary, with the option to provide a default value if the key is not found.
- 28. The process of converting a Python object into a format suitable for storage or transmission.
- 32. A comparison in Python to check if set1 is a superset of set2.
- 33. A set operation in Python that returns a new set containing elements present in the first set but not in the second set.
