djfz-2020-s444507/TaskA02/run.py
2020-11-07 21:14:44 +01:00

17 lines
300 B
Python

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'))