fork download
  1. labels = ['Purpose', 'Design/methodology/approach', 'Methodology/Approach', 'Methodology/approach' 'Findings', 'Research limitations/implications', 'Research limitations/Implications' 'Practical implications', 'Social implications', 'Originality/value']
  2. strings = ['PurposeThis article explores....', 'Design/methodology/approachThe design of our study....']
  3. print [l + ": " + s.split(l)[1].lstrip() for l in labels for s in strings if l in s]
Success #stdin #stdout 0.02s 6920KB
stdin
Standard input is empty
stdout
['Purpose: This article explores....', 'Design/methodology/approach: The design of our study....']