From 59b10f7a5390d110c113c799bf12d89709988cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zofia=20B=C4=85czyk?= Date: Sun, 22 Nov 2020 14:08:47 +0100 Subject: [PATCH] attempt 1 --- TaskB04/Makefile | 0 TaskB04/run | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 TaskB04/Makefile create mode 100644 TaskB04/run diff --git a/TaskB04/Makefile b/TaskB04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskB04/run b/TaskB04/run new file mode 100644 index 0000000..87f2d2c --- /dev/null +++ b/TaskB04/run @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import sys +import re + +for line in sys.stdin: + substrings = re.findall(r'\d+',line) + if len(substrings) > 0: + print(' '.join(substrings))