One other thing to note: if you're working with a comma-separated
value file (CSV), then you may want to use the 'csv' module to parse
it.

    https://docs.python.org/3.5/library/csv.html

This should allow you to walk through the file as if it were a
sequence of records.  In contrast, if you're dealing with your input
as a sequence of lines, then you have more to deal with: you need to
think about issues like line endings, which Cameron has pointed out.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to