Debug the following Python function code."""This function unpacks data from a csv file for a parts list for an instrument
argumentsline - a string corresponding to one line of the file being read
returnsdata_entry - a list of data. This data is unpacked as strings, so it does not assume anything about how the data will be used later on. Whitespace is stripped from the data, including the end of line characters, \n, prior to splitting on commas.
"""
def parse_line(line="Null"):
line = line.strip()# strip off any white space at the start/end of the line
data_entry = line.split(",")# unpack the CSV file line
return data_entry
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here