>>> is_for_table('__1','011',2) True >>> is_for_table('01_','001',1) False
(string1: str, string2: str, count: int)
| 65 | |
| 66 | |
| 67 | def is_for_table(string1: str, string2: str, count: int) -> bool: |
| 68 | """ |
| 69 | >>> is_for_table('__1','011',2) |
| 70 | True |
| 71 | |
| 72 | >>> is_for_table('01_','001',1) |
| 73 | False |
| 74 | """ |
| 75 | list1 = list(string1) |
| 76 | list2 = list(string2) |
| 77 | count_n = sum(item1 != item2 for item1, item2 in zip(list1, list2)) |
| 78 | return count_n == count |
| 79 | |
| 80 | |
| 81 | def selection(chart: list[list[int]], prime_implicants: list[str]) -> list[str]: |
no outgoing calls
no test coverage detected