forked from miczar1/djfz-24_25
lab2, task 1 done, 2 started
This commit is contained in:
parent
bcc3d7344f
commit
ed65fd5535
9
TaskB01/task1.py
Normal file
9
TaskB01/task1.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import regex as re
|
||||||
|
|
||||||
|
with open('shakespeare.in', encoding='utf8') as file:
|
||||||
|
lines = file.readlines()
|
||||||
|
for line in lines:
|
||||||
|
line = line.strip()
|
||||||
|
x = re.search(r'Hamlet', line)
|
||||||
|
if x:
|
||||||
|
print(line)
|
0
TaskB02/task2.py
Normal file
0
TaskB02/task2.py
Normal file
Loading…
Reference in New Issue
Block a user