Get Prices from List

This task assists with Python string parsing. You'll parse a list of strings that represent shopping items with their prices in parentheses. The goal is to extract and return these prices.

The task involves parsing a shopping list comprised of several items, with each item having a respective price. The list is given as a list of strings, where each string contains an item's name trailed by its price within parentheses. The task requires creating a Python function to extract the price of each shopping item. The price should be returned as a float. ### Parameters - `lst` (list): A list of string-represented items on a shopping list. The price is denoted in parentheses right after the item's description. ### Return Value - Returns a list of prices (as float values) extracted from the shopping list. ### Examples ```python # Single item shopping list solution(["salad ($4.99)"]) # Expected Output: [4.99] # Multi-item shopping list solution([ "artichokes ($1.99)", "rotisserie chicken ($5.99)", "gum ($0.75)" ]) # Expected Output: [1.99, 5.99, 0.75] ``` ```