This commit is contained in:
Kristofers Solo 2021-10-06 21:24:11 +03:00
commit 1bd01f41c1
4 changed files with 14558 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
.venv/ .venv/
.vscode/ .vscode/
/__pycache__/

Binary file not shown.

14543
task_061021/book.txt Normal file

File diff suppressed because it is too large Load Diff

13
task_061021/main.py Normal file
View File

@ -0,0 +1,13 @@
import re
with open('book.txt', encoding='utf-8') as book:
lines = book.read()
# lines = [line.strip() for line in book if "Chapter 1" in line]
# for line in lines:
# if line.strip() == "Chapter 1":
# var = []
# var.append(line.strip())
results = re.search("Chapter 59", lines)
# print(lines)
print(results)