Finden Sie Substr in einem STR in Python

fullstring = "StackAbuse"
substring = "tack"

try:
    fullstring.index(substring)
except ValueError:
    print("Not found!")
else:
    print("Found!")
Aisha Al-Harbi