The prompt:
Write a sequence of statements that finds the first comma in the string associated with the variable line, and associates the variable clause the portion of line up to, but not including the comma.
I am stuck. All I could understand and come up with was two statements (variables). First comma in the string associated with the variable line, makes me think of line equal line, and clause equal
Blockquote
line = line,
clause = "line"
Second attempt- still not working but I'm getting there now that I know to focus on find, index, or split
line = ""
clause = line.find("," [0[line]])
Attempt three, the split works but the issue is the line statement and it is by omitting the line statement that it finally works. Thanks so much!
clause = line.split(",")[0]