Source Code:
(back to article)
string = "Hello, World!" word = "World" if string.find(word) != -1: print(f"'{word}' is in the string '{string}'") else: print(f"'{word}' is not in the string '{string}'")
Result:
Report an issue