Question: Subtask 1 . 1 : Extract the product name The following function extract _ product _ name ( product _ card ) that takes a

Subtask 1.1: Extract the product name
The following function extract_product_name(product_card) that takes a product card string as input and
returns the product name as a string.
def extract_product_name(product_card):
"""
IN: product_card, string, the product card string
OUT: product_name, string, the product name
"""
find h4 tag with class title
then use (.*?) to capture the product name in the tag
pattern = r'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!