0 out of 464 challenges solved
Write a Python function `extract_quotation` that takes a string as input and extracts all the values enclosed in double quotation marks (`" "`). The function should return a list of these values in the order they appear in the string.
#### Example Usage
```python [main.nopy]
print(extract_quotation('Cortex "A53" Based "multi" tasking "Processor"'))
# Output: ['A53', 'multi', 'Processor']
print(extract_quotation('Cast your "favorite" entertainment "apps"'))
# Output: ['favorite', 'apps']
print(extract_quotation('Watch content "4k Ultra HD" resolution with "HDR 10" Support'))
# Output: ['4k Ultra HD', 'HDR 10']
print(extract_quotation("Watch content '4k Ultra HD' resolution with 'HDR 10' Support"))
# Output: []
```
#### Constraints
- The input string may contain zero or more pairs of double quotation marks.
- If no double quotation marks are present, the function should return an empty list.import re
def extract_quotation(text):
"""
Extract all values enclosed in double quotation marks from the input string.
Args:
text (str): The input string.
Returns:
list: A list of values enclosed in double quotation marks.
"""
# Use a regular expression to find all matches
# Placeholder for the solution
pass