splitlines() handles all line endings (\n, \r\n from Windows files, etc.) and doesn't give you an empty string at the end if the text ends with a newline. Safer for real data.
AMAmeliaRunsOP
Windows line endings, good point.
LILiamByte
timestamp[11:19] in stage 2 — same slicing as in "Date and time from a timestamp". The challenges build on each other nicely.
LULucasVD
This is where it starts feeling like real data processing.
Comments 4
Log in to join the discussion.
Log in Create accountsplitlines()handles all line endings (\n, \r\n from Windows files, etc.) and doesn't give you an empty string at the end if the text ends with a newline. Safer for real data.Windows line endings, good point.
timestamp[11:19]in stage 2 — same slicing as in "Date and time from a timestamp". The challenges build on each other nicely.This is where it starts feeling like real data processing.