parse_csv_line(line) that simulates parsing one line of user-entered CSV input, such as what input() might return. Given a comma-separated string line, return a list of the trimmed (whitespace-stripped) fields.parse_csv_line(" John , 25 , Delhi")['John', '25', 'Delhi']
Each field is split on commas and stripped of surrounding whitespace.
parse_csv_line("a,b,c")['a', 'b', 'c']
No extra whitespace to strip.
`line.split(",")` breaks the string into raw fields.
Use `.strip()` on each field, e.g. via a list comprehension.