line.split(',') returns a tuple. You can then pack this tuple by writing:
name,adult,child= line.split(',')
If the tuple does not have exactly three elements, then unsuccessful packaging is not performed. In your case, the error message indicates that you have only one item. So line.split(',') explicitly returns a tuple with only one element. This means that line has no commas.
Perhaps this means that your input is not what you expect. You require that line be a string containing three values ββseparated by commas, but there is a string in your input that does not meet this requirement.
David heffernan
source share