Zadanie 3
This commit is contained in:
parent
231bc20035
commit
8cb7c2757a
13
TaskA04/A04.py
Normal file
13
TaskA04/A04.py
Normal 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
0
TaskA04/Makefile
Normal file
2
TaskA04/run
Executable file
2
TaskA04/run
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
python3 TaskA04/A04.py "$@"
|
2
result.csv
Normal file
2
result.csv
Normal file
@ -0,0 +1,2 @@
|
||||
POINTS
|
||||
7
|
|
Loading…
Reference in New Issue
Block a user