Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created September 10, 2019 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/c18359653def04cd654a5526137c3fee to your computer and use it in GitHub Desktop.
Save BMU-Verlag/c18359653def04cd654a5526137c3fee to your computer and use it in GitHub Desktop.
def parse_line(line):
contents = line.split('(') ## ['name ', 'jahr-jahr), zusatz ']
name = contents[0]
remaining_contents = contents[1].split(')') ## ['jahr-jahr ', 'zusatz ']
age_range = remaining_contents[0]
return LineContent(name, age_range)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment