PYTHON DATA STRUCTURES PUZZLES
Across
- 1. What type of quotes are commonly used to define a string literal?
- 4. What keyword removes an element from a list by its value?
- 5. Which string method checks if a string starts with a specific prefix?
- 8. What separates elements within a tuple definition?
- 10. What is another common term for an anonymous function?
- 11. Are tuples mutable or immutable?
- 14. Which term describes accessing an element in a sequence using its position?
- 16. What method returns a view object that displays a list of a dictionary's keys?
- 17. What keyword is used to define a new function in Python?
- 20. What is a function that calls itself called?
- 21. Which string method converts all characters to uppercase?
- 23. What operation combines two or more strings into one?
- 24. What method splits a string into a list of substrings based on a delimiter?
Down
- 2. What keyword is used to create a small, anonymous function?
- 3. What is the data structure that stores key-value pairs?
- 6. What bracket type encloses elements in a Python list?
- 7. Can you directly change a character within an existing Python string?
- 9. What are the values passed into a function when it is called?
- 12. What method adds a single element to the end of a list?
- 13. What method adds a new key-value pair to a dictionary or updates an existing one?
- 15. How do you access a value in a dictionary using its unique identifier?
- 18. What loop structure is commonly used to go through each item in a list or dictionary?
- 19. What keyword is used to send a value back from a function to the caller?
- 22. What are the variables defined inside a function that are only accessible within that function's scope?
- 24. What is the term for extracting a portion of a string using start and end indices?