diff --git a/pages/students/2016/patrik_pavlisin/dp2022/prepare-data.sh b/pages/students/2016/patrik_pavlisin/dp2022/prepare-data.sh index e69de29bb..1e58c27fe 100644 --- a/pages/students/2016/patrik_pavlisin/dp2022/prepare-data.sh +++ b/pages/students/2016/patrik_pavlisin/dp2022/prepare-data.sh @@ -0,0 +1,11 @@ +import sys + +for l in sys.stdin: + line = l.rstrip() + tokens = line.split() + result = [] + for token in tokens: + items = token.split("|") + print(items) + result.append(items[0]) + print(" ".join(result)) \ No newline at end of file