1fullstring = "StackAbuse"
2substring = "tack"
3
4if fullstring.find(substring) != -1:
5 print "Found!"
6else:
7 print "Not found!"
8
1>>> str = "Messi is the best soccer player"
2>>> "soccer" in str
3True
4>>> "football" in str
5False
1type('hello world') == str
2# output: True
3
4type(10) == str
5# output: False
1def is_value_in_string(value: str, the_string: str):
2 return value in the_string.lower()