From 886f851a6926bdf901a6ac8c42da19bcfcce7496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zofia=20B=C4=85czyk?= Date: Sun, 8 Nov 2020 17:02:04 +0100 Subject: [PATCH] attempt-1 --- TaskA01/Makefile | 0 TaskA01/run | 13 +++++++++++++ 2 files changed, 13 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..6145da4 --- /dev/null +++ b/TaskA01/run @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +import sys + +def ham(line): + if 'Hamlet' in line: + return True + else: + return False + +for line in sys.stdin: + if ham(line): + print(line, end='')