Show how Python's split turns a string into a list and join turns it back into a string.
The split() method breaks a string into a list of pieces using a separator, and the join() method glues a list of strings back together using a separator that you choose. The two methods are partners, and one of them almost always follows the other.
csv_line = 'ada,99,grace,87'
fields = csv_line.split(',')
print(fields) # ['ada', '99', 'grace', '87']
print(','.join(fields)) # ada,99,grace,87
print('-'.join(fields)) # ada-99-grace-87
# maxsplit limits how many splits happen.
print('a,b,c'.split(',', 1)) # ['a', 'b,c']
# join works on any iterable of strings.
print(''.join(str(number) for number in range(5))) # 01234
Splitting on a comma gives four fields, and joining them with a comma gives you the original string back exactly. The maxsplit argument is the detail that people often miss. The call split(',', 1) splits only at the first comma, so everything after it stays in one piece. That is exactly what you want for a format where only the first separator is a real delimiter.
Two versions of split() are worth telling apart. split() with no argument splits on any run of whitespace and throws the empty pieces away, so it is the right choice when you are counting words. split(',') splits on that exact separator and keeps the empty pieces, so 'a,,b'.split(',') gives you three elements with an empty string in the middle.
For join(), two points matter most. The separator belongs to the string that you call the method on, and every element has to be a string already. Passing an integer raises a TypeError, which is why the example above converts each number with str() first. join() also accepts any iterable, so it works on a list, a tuple, or a generator, and that is why it is the natural partner of split().