added A02 task
This commit is contained in:
parent
6c0d26c40e
commit
aa926375ab
0
TaskA02/Makefile
Normal file
0
TaskA02/Makefile
Normal file
2
TaskA02/run
Normal file
2
TaskA02/run
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
python TaskA02/run.py "$@"
|
16
TaskA02/run.py
Normal file
16
TaskA02/run.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def is_pies_in_lin(line):
|
||||||
|
line = line.lower().rstrip('\n')
|
||||||
|
line_array = line.split(' ')
|
||||||
|
# print(line_array)
|
||||||
|
if 'pies' in line_array:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
if is_pies_in_lin(line):
|
||||||
|
print(line.rstrip('\n'))
|
Loading…
Reference in New Issue
Block a user