This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def diff(a, b): | |
| """O(n) (для a) + O(n) (для b)""" | |
| return [i for i in a if i not in b] | |
| def test_diff(): | |
| a = [1, 2, 3] | |
| b = [3, 4, 5] | |
| result = diff(a, b) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import requests | |
| import time | |
| from datetime import datetime | |
| from uuid import uuid4 | |
| class GetBook: | |
| header = """<?xml version="1.0" encoding="UTF-8"?> |