djfz-2020-s450026/TaskA01/run

16 lines
232 B
Plaintext
Raw Normal View History

2020-10-26 14:57:00 +01:00
#!/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'))