added A02 task

This commit is contained in:
= 2020-11-07 21:14:44 +01:00
parent 6c0d26c40e
commit aa926375ab
3 changed files with 18 additions and 0 deletions

0
TaskA02/Makefile Normal file
View File

2
TaskA02/run Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python TaskA02/run.py "$@"

16
TaskA02/run.py Normal file
View 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'))