This file is used to store some tips and tricks I collect while programming in Python.
When a single string is looked for in a list of strings by providing a sub-string, here is the solution with the lowest execution time:
s = next((s for s in slist if subs in s), None)