Try this . I hope this is what you are looking for
s="12342helloworls@#$"
n=raw_input('enter string')
if n in s:
print "Found"
You can in
statment to check for substring
1
solved Check if a string contains another string of numbers [closed]