my_string = "Hello, world!" substring = "world" if substring in my_string: print("Substring found!") else: print("Substring not found!")