I am searching a string for a substring. It seems simple enough:
Unfortunately I am getting a traceback that makes no sense.
Traceback (most recent call last):
File “./spamcop.py”, line 109, in
File “./spamcop.py”, line 51, in scan
TypeError: argument should be integer or bytes-like object, not ‘str’
Why would a string function complain about providing a string. It looks like it wants a 2nd and 3rd argument even though it is not required. Can someone help with this? TIA.