>>> print('3' in '13 12'.split())
False
>>> print('3' in '13 12 333 453 2 3 433'.split())
True
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
There is also re.search(r'\b3\b', '13 12 333 453 2 3 433') but it will match -3 too.
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691