if element == [str(i)]: python code example Example: python check if string in string if "blah" not in somestring: continue