Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def has_matching_fourth_line(pages):
- # Регулярний вираз для перевірки
- pattern = re.compile(r'^.*".*".*$')
- for page in pages:
- lines = page.splitlines()
- if len(lines) >= 4 and pattern.match(lines[3]):
- print (lines[3])
- #return True
- #else:
- #return False
Advertisement
Add Comment
Please, Sign In to add comment