Answer:
As given in the question assuming that the necessary variable are declared, the below line would satisfy the expectation of the question.
clause = line.split(',')[0]
Step-by-step explanation:
Split is string function which enable us split the text based on the character that is given as a parameter. Split() accepts a single parameter which accepts the splitter character.
According to the question the given string should be separated by comma and the first sentence before comma should be assigned to the clause variable. So line.split(‘,’)[0] will do that.
The number ‘0’ inside the square bracket represent the first sentence after splitting with comma.