Jan-04-2022, 04:09 PM
I agree with @ibreeden with regard to the changes that should be made. That being said, your code actually works as expected. You only need to print the results.
print (excs4("BIB","ZIP")) print (excs4("BIB","PIP"))
Output:False
True