0 out of 464 challenges solved
Write a Python function `extract_values` that takes a string as input and returns a list of all values enclosed in double quotation marks (`"`). #### Example Usage ```python [main.nopy] extract_values('"Python", "PHP", "Java"') # Output: ['Python', 'PHP', 'Java'] extract_values('"red","blue","green","yellow"') # Output: ['red', 'blue', 'green', 'yellow'] extract_values('"python","program","language"') # Output: ['python', 'program', 'language'] ```
import re def extract_values(text): """ Extracts all values enclosed in double quotation marks from the input string. Args: text (str): The input string containing quoted values. Returns: list: A list of values found within double quotation marks. """ # Implement the function logic here pass