Zadanie 3

This commit is contained in:
s450026 2020-11-08 21:23:29 +01:00
parent 231bc20035
commit 8cb7c2757a
4 changed files with 17 additions and 0 deletions

13
TaskA04/A04.py Normal file
View File

@ -0,0 +1,13 @@
import sys
def contains_number(line):
result = ''.join((char if char in "0123456789" else " ") for char in line)
list_of_nums = result.split()
return " ".join([str(num) for num in list_of_nums])
for line in sys.stdin:
words = contains_number(line).rstrip("\n")
if words != "":
print(words)

0
TaskA04/Makefile Normal file
View File

2
TaskA04/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python3 TaskA04/A04.py "$@"

2
result.csv Normal file
View File

@ -0,0 +1,2 @@
POINTS
7
1 POINTS
2 7