From fd916dddbe6d50f465c760d448b1cd646dce0940 Mon Sep 17 00:00:00 2001 From: kubapok Date: Mon, 26 Oct 2020 14:57:00 +0100 Subject: [PATCH] TaskA01 done --- TaskA01/Makefile | 0 TaskA01/run | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 TaskA01/Makefile create mode 100644 TaskA01/run diff --git a/TaskA01/Makefile b/TaskA01/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskA01/run b/TaskA01/run new file mode 100644 index 0000000..dd06d51 --- /dev/null +++ b/TaskA01/run @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +import sys + + +def line_contain_hamlet(line): + if 'Hamlet' in line: + return True + else: + return False + + +for line in sys.stdin: + if line_contain_hamlet(line): + print(line.rstrip('\n'))