diff --git a/TaskB01/run.py b/TaskB01/run.py new file mode 100644 index 0000000..7553610 --- /dev/null +++ b/TaskB01/run.py @@ -0,0 +1,11 @@ +input_file = 'shakespeare.exp' + + +with open(input_file, 'r', encoding='utf-8') as file: + lines = file.readlines() + + +for i, line in enumerate(lines, start=1): + if 'Hamlet' in line or 'hamlet' in line: + print(f"{i}: {line.strip()}") +