my_string = "I like to do programming"
# Using the `find` method to check if a substring exists in the string
if my_string.find("programming") != -1:
print("The string contains 'programming'")
else:
print("The string does not contain 'programming'")