Only strange thing I see is print line in exist case, which has twice % instead of tuple:
print( '"%s" exists in the list at index "%s"' % (f_exists, f_in))
Just enable the while loop, fix exit, fix little output format and you are done.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852