TaskA01 done
This commit is contained in:
parent
9ed7398c52
commit
fd916dddbe
0
TaskA01/Makefile
Normal file
0
TaskA01/Makefile
Normal file
15
TaskA01/run
Normal file
15
TaskA01/run
Normal file
@ -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'))
|
Loading…
Reference in New Issue
Block a user