diff --git a/TaskB01/task1.py b/TaskB01/task1.py new file mode 100644 index 0000000..e636911 --- /dev/null +++ b/TaskB01/task1.py @@ -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) \ No newline at end of file diff --git a/TaskB02/task2.py b/TaskB02/task2.py new file mode 100644 index 0000000..e69de29