lab2, task 1 done, 2 started

This commit is contained in:
Robert 2024-11-25 12:09:17 +01:00
parent bcc3d7344f
commit ed65fd5535
2 changed files with 9 additions and 0 deletions

9
TaskB01/task1.py Normal file
View 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
View File