make doesn't work
This commit is contained in:
parent
9ed7398c52
commit
08ed000cd2
1
TaskA01/Makefile
Normal file
1
TaskA01/Makefile
Normal file
@ -0,0 +1 @@
|
|||||||
|
shakespeare.res
|
18
TaskA01/run.py
Normal file
18
TaskA01/run.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def is_hamlet_in_line(line):
|
||||||
|
if 'Hamlet' in line:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
file1 = open("shakespeare.res", "a")
|
||||||
|
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
if is_hamlet_in_line(line):
|
||||||
|
file1.write(line)
|
||||||
|
print(line.rstrip('\n'))
|
0
TaskA02/Makefile
Normal file
0
TaskA02/Makefile
Normal file
0
TaskA03/Makefile
Normal file
0
TaskA03/Makefile
Normal file
0
TaskA04/Makefile
Normal file
0
TaskA04/Makefile
Normal file
Loading…
Reference in New Issue
Block a user