diff --git a/TaskA02/Makefile b/TaskA02/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskA02/run b/TaskA02/run new file mode 100644 index 0000000..80baa5c --- /dev/null +++ b/TaskA02/run @@ -0,0 +1,2 @@ +#!/bin/bash +python TaskA02/run.py "$@" \ No newline at end of file diff --git a/TaskA02/run.py b/TaskA02/run.py new file mode 100644 index 0000000..d93e05a --- /dev/null +++ b/TaskA02/run.py @@ -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'))