Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update quine_mc_cluskey.py
  • Loading branch information
poyea authored Oct 27, 2021
commit c99e70a85814c0c202ef1445800abbcb3c687385
6 changes: 4 additions & 2 deletions boolean_algebra/quine_mc_cluskey.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

from typing import Sequence


def compare_string(string1: str, string2: str) -> str:
"""
Expand Down Expand Up @@ -46,7 +48,7 @@ def check(binary: list[str]) -> list[str]:
binary = list(set(temp))


def decimal_to_binary(no_of_variable: int, minterms: list[float]) -> list[str]:
def decimal_to_binary(no_of_variable: int, minterms: Sequence[float]) -> list[str]:
"""
>>> decimal_to_binary(3,[1.5])
['0.00.01.5']
Expand Down Expand Up @@ -142,7 +144,7 @@ def prime_implicant_chart(
return chart


def main():
def main() -> None:
no_of_variable = int(input("Enter the no. of variables\n"))
minterms = [
int(x)
Expand Down