Return a Python Standard Library set that contains i.
(node: Node)
| 49 | |
| 50 | |
| 51 | def find_python_set(node: Node) -> set: |
| 52 | """ |
| 53 | Return a Python Standard Library set that contains i. |
| 54 | """ |
| 55 | sets = ({0, 1, 2}, {3, 4, 5}) |
| 56 | for s in sets: |
| 57 | if node.data in s: |
| 58 | return s |
| 59 | msg = f"{node.data} is not in {sets}" |
| 60 | raise ValueError(msg) |
| 61 | |
| 62 | |
| 63 | def test_disjoint_set() -> None: |
no outgoing calls