You need to import the main function and pass on minterms and number of variables.
======= You just need to import the main function and pass on minterms and number of variables.
from HW2_2018363 import minFunc
print(minFunc('0,1 d 2',2))
That will do the work ;)
Code has vulnerabilities
This code is not general. It might fail on some cases :(