Update 'pages/students/2016/patrik_pavlisin/dp2022/prepare-data.sh'

This commit is contained in:
Patrik Pavlišin 2021-11-04 13:40:03 +00:00
parent 8c54fbe98e
commit 512f3adff4

View File

@ -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))