Created
September 10, 2019 07:56
-
-
Save BMU-Verlag/c18359653def04cd654a5526137c3fee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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